Pixel office switch
Slide a liquid-glass lens between a sunlit city office and a late-night focus session.
Customize
Props
| Props | Type | Default | Description |
|---|---|---|---|
defaultChecked | boolean | false | Start focused, lowering the blinds, changing the city to night and turning on the desk lamp. |
ariaLabel | string | "像素工位开关" | Accessible switch name announced by screen readers. |
onChange | (checked: boolean) => void | — | Returns true for focused or false for available after a user change. |