Skip to content
Menu

Buttons

Camera flash pill

Camera flash pill: A solid accent pill with a camera glyph that flickers like a struggling flash tube on hover or focus, and blanks its whole face white for one short beat when pressed.

Using Camera flash pill

Camera flash pill 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
labeltextTake a photoUp to 24 characters
accentcolor#FF3B5CNo additional limit in the metadata.
flickerOnHoverbooleantrueNo additional limit in the metadata.
flickerPeriodnumber2From 0.8 to 5; step 0.1
showCounterbooleantrueNo additional limit in the metadata.
Which frameworks are available for Camera flash pill?

Camera flash pill 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 Camera flash pill depend on?

The React metadata lists no additional npm dependencies beyond React.

What accessibility details are visible in Camera flash pill?

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

How does Camera flash pill handle reduced motion?

Camera flash pill reads the motion preference in its React source through matchMedia(prefers-reduced-motion). 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