Image Figure

An image with an editorial caption and credit, keeping the reserved space and responsive behaviour of the Image component.

UIimage-figureView JSON

`ImageFigure` is the editorial wrapper: the image keeps every `Image` behaviour and the `<figcaption>` keeps the caption and the credit on one baseline. `className` styles the figure, so the caption spacing stays with the caption.

Preview

The launch vehicle on the pad
A still from the Artemis II launch trailer.NASA

Installation

Add the item with the shadcn CLI, or copy the source manually.

pnpm dlx shadcn@latest add litingyes/blocove/image-figure

Requires a shadcn/ui project set up with Base UI primitives. Blocove is developed against the b0 preset, but it installs no base config or theme tokens: your own preset, fonts and colors stay in place.

Or install from the namespace after adding the registry: npx shadcn@latest add @blocove/image-figure

API Reference

Props accepted by the exported components.

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.

PropTypeDefault
captionReactNode-
creditReactNode-
imageClassNamestring-
classNamestring-