Park UI Logo
GitHub
Components
Switch

Switch

A control element that allows for a binary selection.

Usage

import { Switch, type SwitchProps } from '~/components/ui'

export const Demo = (props: SwitchProps) => {
  return (
    <Switch defaultChecked {...props}>
      Label
    </Switch>
  )
}

Installation

npx @park-ui/cli components add switch