active
タイプ
booleanYamada UIにスターをあげる
スターSwitchは、オンとオフの状態を切り替えるために使用されるコンポーネントです。
タイプ
booleanタイプ
booleanタイプ
booleanタイプ
boolean非推奨
Use active instead.
タイプ
boolean非推奨
Use checked instead.
タイプ
boolean非推奨
Use focused instead.
タイプ
boolean非推奨
Use hovered instead.
タイプ
boolean説明
If true, the checkbox will be checked.
タイプ
booleanデフォルト
false説明
The visual color appearance of the component.
タイプ
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"デフォルト
"primary"説明
If true, the checkbox will be initially checked.
タイプ
booleanデフォルト
false説明
If true, the checkbox will be initially checked.
非推奨
Use defaultChecked instead.
タイプ
booleanデフォルト
false説明
If true, the form control will be disabled.
タイプ
booleanデフォルト
false説明
The switch icon to use.
タイプ
ReactElement<SwitchIconProps,
string | JSXElementConstructor<any>>説明
id assigned to input.
タイプ
string説明
If true, the checkbox will be indeterminate.
タイプ
booleanデフォルト
false説明
Props for switch input element.
タイプ
InputHTMLAttributes<HTMLInputElement>説明
If true, the form control will be invalid.
タイプ
booleanデフォルト
false説明
If true, the checkbox will be checked.
非推奨
Use checked instead.
タイプ
booleanデフォルト
false説明
If true, the form control will be disabled.
非推奨
Use disabled instead.
タイプ
booleanデフォルト
false説明
If true, the form control will be invalid.
非推奨
Use invalid instead.
タイプ
booleanデフォルト
false説明
If true, the form control will be readonly.
非推奨
Use readOnly instead.
タイプ
booleanデフォルト
false説明
If true, the form control will be required.
非推奨
Use required instead.
タイプ
booleanデフォルト
false説明
Change switch label from right to left.
非推奨
Use reverse instead.
タイプ
booleanデフォルト
false説明
Props for switch label element.
タイプ
HTMLUIProps<"span">説明
The HTML name attribute used for forms.
タイプ
string説明
The callback invoked when the checkbox is blurred.
タイプ
FocusEventHandler<HTMLInputElement>説明
The callback invoked when the checked state changes.
タイプ
ChangeEventHandler<HTMLInputElement>説明
The callback invoked when the checkbox is focused.
タイプ
FocusEventHandler<HTMLInputElement>説明
If true, the form control will be readonly.
タイプ
booleanデフォルト
false説明
If true, the form control will be required.
タイプ
booleanデフォルト
false説明
Change switch label from right to left.
タイプ
booleanデフォルト
false説明
If true, the checkbox will be selected when the Enter key is pressed.
タイプ
booleanデフォルト
false説明
The size of the Switch.
タイプ
"sm" | "md" | "lg"デフォルト
"md"説明
The tab-index property of the underlying input element.
タイプ
number説明
Motion transition settings.
タイプ
Transition説明
The value to be used in the checkbox input.
タイプ
string説明
The variant of the Switch.
タイプ
"thin" | "thick"デフォルト
"thick"GitHubでこのページを編集する