active
Description
If true, the toggle button is represented as active.
Type
booleanDefault
falseLeave Yamada UI a star
StarToggle is a component that has two states: on or off.
Description
If true, the toggle button is represented as active.
Type
booleanDefault
falseDescription
The visual color appearance of the component.
Type
"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"Default
"gray"Description
If true, the toggle button will be initially selected.
Deprecated
Use defaultSelected instead.
Type
booleanDefault
falseDescription
If true, the toggle button will be initially selected.
Type
booleanDefault
falseDescription
If true, disable ripple effects when pressing a element.
Type
booleanDefault
falseDescription
If true, the toggle button is full rounded. Else, it'll be slightly round.
Type
booleanDefault
falseDescription
The icon to be used in the button.
Type
ReactElement<any, string | JSXElementConstructor<any>>Description
If true, the toggle button is represented as active.
Deprecated
Use active instead.
Type
booleanDefault
falseDescription
If true, the toggle button will be disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
If true, the toggle button will be readonly.
Deprecated
Use readOnly instead.
Type
booleanDefault
falseDescription
If true, the toggle button is full rounded. Else, it'll be slightly round.
Deprecated
Use fullRounded instead.
Type
booleanDefault
falseDescription
If true, the toggle button will be selected.
Deprecated
Use selected instead.
Type
booleanDescription
The callback invoked when selected state changes.
Type
(selected: boolean) => voidDescription
If true, the toggle button will be readonly.
Type
booleanDefault
falseDescription
If true, the toggle button will be selected.
Type
booleanDescription
The size of the Toggle.
Type
"xs" | "sm" | "md" | "lg"Default
"md"Description
The value of the toggle button.
Type
YDescription
The variant of the Toggle.
Type
"outline" | "solid" | "subtle" | "unstyled"Default
"subtle"Description
The initial value of the toggle button group.
Type
NonNullable<Y extends any[] ? Y : Y | undefined>Description
The CSS flex-direction property.
Deprecated
Use flexDirection instead.
Type
UIValue<FlexDirection>Description
If true, all wrapped toggle button will be disabled.
Type
booleanDefault
falseDescription
If true, all wrapped toggle button will be disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
If true, all wrapped toggle button will be readonly.
Deprecated
Use readOnly instead.
Type
booleanDefault
falseDescription
The callback fired when any children toggle button is selected or unselected.
Type
(value: Y extends any[] ? Y : Y | undefined) => voidDescription
If true, all wrapped toggle button will be readonly.
Type
booleanDefault
falseDescription
The value of the toggle button group.
Type
NonNullable<Y extends any[] ? Y : Y | undefined>Edit this page on GitHub