Dev Design Library

Toggle

A button that stays on or off, with a fill that settles in when pressed, a clear hover-to-on step and icons that can fill with the state.

Toggle preview
Library
HextaUI
Framework
React
Type
ui
License
MIT
Dependencies
@base-ui/react@^1.8.0, class-variance-authority, cn
Install
npx shadcn@latest add https://hextaui.com/r/toggle.json
Files
  • components/ui/toggle.tsx
Source
https://github.com/preetsuthar17/hextaui

Categories

More from HextaUI