Skip to content
OTF Kit logoOTF Kit

Toggle Button

Input

Segmented toggle button group for exclusive or multi-select mode switching.

View in Storybook
Toggle Button
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.

PropTypeDefaultDescription
childrenrequiredReactNode
valuerequiredstring
classNamestring
disabledboolean
onClick() => void
pressedboolean

Related