0.1.0 • Published 1 year ago

@urban-ui/switch v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@urban-ui/switch

control | switch

npm minzip size License

Boolean toggle component that looks like a switch

## Getting started

pnpm add -S @urban-ui/switch
import * as Switch from '@urban-ui/switch'

export function MyComponent() {
  return (
    <Switch.Root>
      <Switch.Thumb />
    </Switch.Root>
  )
}

Details

Styling around @radix-ui/react-switch

API

PropTypeDescription