active
Description
If true
, the toggle button is represented as active.
Type
boolean
Default
false
Leave 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
boolean
Default
false
Description
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
boolean
Default
false
Description
If true
, the toggle button will be initially selected.
Type
boolean
Default
false
Description
If true
, disable ripple effects when pressing a element.
Type
boolean
Default
false
Description
If true, the toggle button is full rounded. Else, it'll be slightly round.
Type
boolean
Default
false
Description
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
boolean
Default
false
Description
If true
, the toggle button will be disabled.
Deprecated
Use disabled
instead.
Type
boolean
Default
false
Description
If true
, the toggle button will be readonly.
Deprecated
Use readOnly
instead.
Type
boolean
Default
false
Description
If true, the toggle button is full rounded. Else, it'll be slightly round.
Deprecated
Use fullRounded
instead.
Type
boolean
Default
false
Description
If true
, the toggle button will be selected.
Deprecated
Use selected
instead.
Type
boolean
Description
The callback invoked when selected state changes.
Type
(selected: boolean) => void
Description
If true
, the toggle button will be readonly.
Type
boolean
Default
false
Description
If true
, the toggle button will be selected.
Type
boolean
Description
The size of the Toggle.
Type
"xs" | "sm" | "md" | "lg"
Default
"md"
Description
The value of the toggle button.
Type
Y
Description
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
boolean
Default
false
Description
If true
, all wrapped toggle button will be disabled.
Deprecated
Use disabled
instead.
Type
boolean
Default
false
Description
If true
, all wrapped toggle button will be readonly.
Deprecated
Use readOnly
instead.
Type
boolean
Default
false
Description
The callback fired when any children toggle button is selected or unselected.
Type
(value: Y extends any[] ? Y : Y | undefined) => void
Description
If true
, all wrapped toggle button will be readonly.
Type
boolean
Default
false
Description
The value of the toggle button group.
Type
NonNullable<Y extends any[] ? Y : Y | undefined>
Edit this page on GitHub