# Image Figure An image with an editorial caption and credit, keeping the reserved space and responsive behaviour of the Image component. ## Installation ```bash npx shadcn@latest add litingyes/blocove/image-figure ``` `ImageFigure` is the editorial wrapper: the image keeps every `Image` behaviour and the `
` keeps the caption and the credit on one baseline. `className` styles the figure, so the caption spacing stays with the caption. ## API Reference ### ImageFigure An image with a caption and a credit. Every Image prop is forwarded to the image; the three below style the wrapper. Extends `ImageProps`. | Prop | Type | Default | | --- | --- | --- | | `caption` | `ReactNode` | - | | `credit` | `ReactNode` | - | | `imageClassName` | `string` | - | | `className` | `string` | - | ## Registry dependencies - `litingyes/blocove/image` Namespace: `npx shadcn@latest add @blocove/image-figure`