Rectangle buttons
Ten distinct CSS-only rectangular call-to-action treatments (glass, gradient border, keycap, dotted border, technical outline, arrow pill, halftone bloom, inset arrow chip, hard-shadow stamp, fill sweep) via `variant`; renders a button or a link.
What it is for
Calls to action, form submits and link buttons; choose one variant to match the page's tone.
Use it
1 · site.json
"effects": { "components": ["rectangle-buttons"] }or on the command line
node ~/.claude/skills/sitewright/scripts/scaffold.mjs --config site.json --out ./my-site --components rectangle-buttons2 · import it
import { RectangleButtons } from '@/components/fx/ui';Files
components/fx/ui/RectangleButtons.tsxui-rectangle-buttons.cssstyles
Accessibility
- Keyboard. Components in the kit are written to be reached and used with the keyboard. Try it: press Tab inside the preview.
- Reduced motion. With
prefers-reduced-motionon, animation settles to its finished state at once. - Touch. Pointer-follow effects are skipped on touch screens; controls stay finger-sized.