Components › Display
Figure
Group an image, diagram, or code sample with a caption.
Installation
npx plankui@latest add figureUsage
import { Figure } from "@/components/ui/figure";
<Figure caption="Quarterly revenue">{chart}</Figure>API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| caption | ReactNode | required | Caption displayed below the content. |
| children | ReactNode | Content described by the caption. |