Skip to content
Menu

Buttons

Key Turn Chip

Key Turn Chip: A small filled chip whose key glyph jiggles like it is feeling for a lock on hover, then turns a quarter and unlocks on click.

Using Key Turn Chip

Key Turn Chip 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.

ControlTypeDefaultPreview limits
labeltextKeyUp to 16 characters
unlockedLabeltextOpenUp to 16 characters
accentcolor#7C5CFFNo additional limit in the metadata.
jiggleDegreesnumber6From 0 to 20; step 1
unlockedbooleanfalseNo additional limit in the metadata.
Which frameworks are available for Key Turn Chip?

Key Turn Chip 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 Key Turn Chip depend on?

The React metadata lists these npm dependencies beyond React: motion.

What accessibility details are visible in Key Turn Chip?

The React source for Key Turn Chip includes: native elements (button); attributes and handlers (aria-hidden, aria-pressed). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Key Turn Chip handle reduced motion?

Key Turn Chip reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduced ? { duration: 0 } : { type: "spring", stiffness: 320, damping: 20 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components