Inputs & Switches
Lid Fold
A box that takes files: fling the file card up at the lid or drop a file on it, and the lid opens and shuts on it. Clean modern: off-black and flamingo with a light theme. From the daily-team 'Control in process' set (2026-10-21 to 2026-10-25).
canvasmedium complexitymoderate motionpointer+keyboardaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Palette: clean modern, off-black and flamingo (docs/style-clean-modern.md). Edit the colour tokens on :root and the light block; keep the demo-v1 lifecycle intact.
Safe to edit
- colour tokens on :root and the light block
- idle demo steps and interval
Keep intact
- demo-v1 preview lifecycle: initialize demo from window.__foreverPreview and stop the idle demo on the window forever:interactive event or the first pointer or key input; retain manual feedback, settling, cleanup and explicit sessions
- IIFE scope, prefers-reduced-motion snap, visibilitychange pause, forever:theme listener and ?theme bootstrap
Known limitations
- The file picker and OS file drop do not apply on touch. The idle demo flings a card, not a real file.
- State remains local to each mounted instance; format/theme remount preserves takeover, not component values.
- Silent: the original daily-team build had sound where noted; it was removed so the tile stays quiet on the wall.
More Inputs & Switches components
- Liquid ToggleSVG liquid toggle with a goo filter, trailing droplets and a native button. First deliberate input stops the idle demo; the chosen on/off state settles fully.
- Glow SliderSVG range slider with a muted plum-to-teal fill, glow and value bubble, driven by a native range input. First input stops demo oscillation; drag and…
- Spring StepperMint stepper with native minus/plus buttons and a number reel that settles with spring feedback. First deliberate input stops automatic steps; the chosen…
- Segmented ControlSlate-to-sage pill slides between four native segment buttons with elastic spring stretch. First input stops automatic cycling; committed selection remains.
- Checkbox MorphThree native amber checkbox buttons animate their check strokes and expose pressed state. First input stops the demo; checked values remain.
- Star RatingFive gold SVG star radio controls commit ratings on click or keyboard input and settle with a scale bounce. First input stops automatic sweeping.