Skip to content
Menu

Charts

Raised Slice Donut

Raised Slice Donut: A donut where one slice is permanently raised above the ring by extending its outer radius, and the raise glides to any other slice on hover.

Using Raised Slice Donut

Raised Slice Donut uses the card 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
accentcolor#38BDF8No additional limit in the metadata.
activeIndexnumber0From 0 to 4; step 1
raisenumber10From 0 to 24; step 1
holeRationumber0.55From 0.2 to 0.75; step 0.05
hueRangenumber90From 20 to 180; step 5
Which frameworks are available for Raised Slice Donut?

Raised Slice Donut 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 Raised Slice Donut depend on?

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

What accessibility details are visible in Raised Slice Donut?

The React source for Raised Slice Donut includes: attributes and handlers (aria-hidden, aria-label, aria-live, onKeyDown, tabIndex); explicit roles (button, group); key comparisons (ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Escape). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Raised Slice Donut handle reduced motion?

Raised Slice Donut 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