import * as React from 'react'; import { MarginClassProps } from '../../utilities/marginClasses'; import { CommonProps } from '../../utilities/commonProps'; declare type Props = { children: React.ReactNode; label?: React.ReactNode; required?: boolean; fieldId?: string; id?: string; help?: React.ReactNode; } & CommonProps & MarginClassProps; /** * フォームの入力欄1つずつを表現するコンポーネントです。 * * * `FormControlGroup` 内に複数個配置することで、水平方向にフィールドの並んだフォームを作ることができます。 * * `help` propによって入力方法の案内などをヘルプアイコンとして表示することができます * * 案内の内容が複雑であったり、理解・記憶・学習が難しいものについてはヘルプアイコンにせず、常時表示しておくことを検討してください * * ## accessibility * * 中に入るフィールド (`TextField` 等) が1つの場合は、フィールドの `id` 属性を必ず設定し、 `FormControl` の `fieldId` propを必ず同じにしてください。 * * [フォーム・コントロールのラベル付け](https://a11y-guidelines.freee.co.jp/explanations/form-labeling.html) のために必要です * * `CheckBox` や `RadioButton` コンポーネントは、内部 (`children` propの部分)に `