Toggle Button
InputSegmented toggle button group for exclusive or multi-select mode switching.
Toggle ButtonInput · Web
Loading Storybook preview…
Installation
bun add @otfdashkit/ui
Usage
Import ToggleButton from @otfdashkit/ui.
Code
// Toggle Button — Segmented toggle button group for exclusive or multi-select mode switching.
//
// Install:
// bun add @otfdashkit/ui
import { ToggleButton } from '@otfdashkit/ui'
export function Example() {
return (
<ToggleButton>
{/* your content */}
</ToggleButton>
)
}Props
Props declared in the ToggleButton source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| childrenrequired | ReactNode | ||
| valuerequired | string | ||
| className | string | ||
| disabled | boolean | ||
| onClick | () => void | ||
| pressed | boolean |