Buttons
Cartridge fire button
Cartridge fire button: A novelty button shaped like a brass shell case, with a projectile tucked behind its nose that shoots out and reloads when pressed.
Using Cartridge fire button
Cartridge fire button uses the inline preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
label | text | Fire | Up to 16 characters |
accent | color | #C9A227 | No additional limit in the metadata. |
shotDistance | number | 30 | From 10 to 80; step 2 |
reloadMs | number | 260 | From 100 to 900; step 20 |
recoil | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Cartridge fire button?
Cartridge fire button is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Cartridge fire button depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Cartridge fire button?
The React source for Cartridge fire button includes: native elements (button); attributes and handlers (aria-hidden, onKeyDown, onKeyUp); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Cartridge fire button handle reduced motion?
Cartridge fire button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: opacity: reduced && flash ? 0.85 : 0; scaleX: pressed && recoil && !reduced ? 0.93 : 1; x: fired && !reduced ? shotDistance : 0. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.