DUI
⌘K

Components / Data display

LegendItem

Chart or summary legend entry.

Preview

Done12
Active7
1import { LegendItem } from "@/components/ui/legend-item"2
3export function LegendItemDemo() {4  return <LegendItem color="#16a34a" label="Done" value="12" />5}

Installation

Add the source directly to your project with the shadcn CLI.

npx shadcn@latest add qentrah/DUI/legend-item

Usage

Install the component, import it from your configured UI directory, and adapt the source to your product. Open the source panel under any example to copy that exact variant.