R 8R 12
4
896 × 54
ComposeUI
ComponentsChartsBlocksDocs

Let's have coffee?

R 16
Subham avatar
Want to work together? Just want to chat?
Subham avatar
Check out my portfolio: subham12r.dev
Subham avatar
Or grab 15 mins on my calendar:
Coffee chat
Portfoliosubham12r.dev
Mail
hello@subham12r.dev
Socials
X / Twitter·GitHub·LinkedIn
Explore
Components·Charts·Blocks·Docs

Designed and built by Subham

ComposeUIComposeUI
© 2026 ComposeUI·React + Tailwind v4

Visitors by browser

Fill
Stroke
Color

Visitors by browser

Donut Chart

Sculpted 3D-beveled donut chart with SVG inset lighting, interactive slices, and compact center metric.

import DonutChartDemo from "@/app/sections/donut-demo"; export function BrowserBreakdown() {  return <DonutChartDemo />;}

Install

Add it with the ComposeUI CLI, or copy the source manually.

$ bunx --bun compose-ui-cli add donut-chart

API Reference

Prop
Type
Default
data
{ name: string; value: number; color?: string }[]

Browser breakdown slices colored from ComposeUI chart tokens.

—
centerLabel
ReactNode

Label rendered inside the hollow donut center below the formatted total.

—
showLegend
boolean

Toggles interactive color legend below the chart.

false

Related components

#
R 12

Visitor traffic

12,352

Oct 31 – Nov 29, 2026

Visitor Traffic
R 12

Quarterly goal

Gauge
72.5%
72.5%sales goals

Milestones

10 / 144.2%

Revenue

$31.4k5.1%
Quarterly goal
R 12

Daily sessions

Bar

81Thu

1 Week Avg.
Daily sessions

Updated December 2026

R 12
Previous

Daily sessions

R 12
Next

Quarterly goal