HUD Brackets
Markup where the component goes, CSS in your stylesheet. No JavaScript.
HTML
CSS
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/input-hud-bracketsAbout this component
Four L-shaped corner brackets animate inward on focus, locking the input in a targeting-reticle frame. Sci-fi HUD aesthetic.
Triggers
- Focus
- Border
- Delay stagger
Techniques
- Keyframes
- Transform only
Difficulty
Intermediate
Accessibility
Reduced motion
Brackets snap to locked position instantly under prefers-reduced-motion.
Use it in anything you build, commercial and client work included. Licence