Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

React Donut Chart with Active State

Donut chart with visual emphasis on hovered segments

Make hover states pop. This React donut chart uses strokeWidth to add visual weight to segments, creating subtle emphasis that makes the chart feel interactive. When users hover over a segment, the thicker stroke draws attention to it. Built with Recharts and shadcn/ui, you can combine this with activeShape for even more dramatic hover effects—enlarging segments or changing opacity. Perfect for Next.js dashboards where segments trigger detail panels or where you want to encourage exploration of the data.

React Donut Chart with Active State preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.