Component docs
Loading
import { Figure } from "@pixxl-tools/components";
// In Server Components:
import { Figure } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
caption | ReactNode | — | — |
captionReactNode
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
const src = "/images/chart.png";
<Figure caption="Generated chart preview"><Image alt="Chart preview" src={src} /></Figure>