Dev Design Library

Switch

A control element that allows for a binary selection.

Switch preview
Library
Ark UI
Framework
React
Type
component
License
MIT
Install
npm install @ark-ui/react
Files
  • packages/react/src/components/switch/index.ts
  • packages/react/src/components/switch/switch-context.tsx
  • packages/react/src/components/switch/switch-control.tsx
  • packages/react/src/components/switch/switch-hidden-input.tsx
  • packages/react/src/components/switch/switch-label.tsx
  • packages/react/src/components/switch/switch-root-provider.tsx
  • packages/react/src/components/switch/switch-root.tsx
  • packages/react/src/components/switch/switch-thumb.tsx
Source
https://github.com/chakra-ui/ark

Categories

More from Ark UI