Dev Design Library

Toggle

A latching push button: the button cap with a lamp; pressing sinks it past the catch, releasing into on settles it at the latch on the part spring with the lamp lit. Toggle group puts the keys in a row.

Toggle preview
Library
Metal UI
Framework
React + SwiftUI
Type
ui
License
MIT
Dependencies
@base-ui/react@^1.8.0
Files
  • packages/metalui/src/components/toggle/toggle.tsx
  • packages/metalui/src/components/button/button.tsx
  • packages/metalui/src/components/led/led.tsx
  • packages/metalui/src/motion/awake.ts
  • packages/metalui/src/motion/reduced.ts
  • packages/metalui/src/motion/swap.tsx
  • packages/metalui/src/motion/waiting.ts
  • packages/metalui/src/motion/waiting.generated.ts
Source
https://github.com/vijayksingh/metalui

Categories

More from Metal UI