N
ns-ui

Switch Eclipse · ns-ui

A binary switch drawn as an eclipse: a dark occluding disc slides across a bright sun disc inside a 56x28 track, forming a computed crescent at the midpoint and a thin corona ring once fully on, while the track's ambient tint darkens smoothly with occlusion.

npx shadcn@latest add https://design.helpmarq.com/r/switch-eclipse.json
Preview Switch Eclipse on ns-ui's site (opens in a new tab)
Loading the source for switch-eclipse…

switch-eclipse