Dev Design Library

Switch

A toggle control that allows users to switch between on and off states.

Switch preview
Library
HeroUI
Framework
React
Type
component
License
Apache-2.0
Install
npm install @heroui/react
Files
  • packages/react/src/components/switch/index.ts
  • packages/react/src/components/switch/switch.tsx
  • packages/react/src/utils/dom.tsx
  • packages/styles/src/index.ts
  • packages/react/src/utils/compose.ts
  • packages/styles/src/utils/index.ts
  • packages/styles/src/components/index.ts
Source
https://github.com/heroui-inc/heroui

Categories

More from HeroUI