Components › Display

Figure

Group an image, diagram, or code sample with a caption.

Installation

npx plankui@latest add figure

Usage

import { Figure } from "@/components/ui/figure";

<Figure caption="Quarterly revenue">{chart}</Figure>

API reference

PropTypeDefaultDescription
captionReactNoderequiredCaption displayed below the content.
childrenReactNodeContent described by the caption.

View the source on GitHub