Picture Figure
A picture at its proportions, its height set by the page, with a caption hanging under it that takes no room. No dependencies.
UnlistedNo dependencies
Not in the components list.
This is a simple piece that ships with a site built with mewo. It installs like any other item, but the catalog, the sidebar and search leave it out.
Seen inBetween Rivers
A portrait, about 3 : 4
A carved disc, nearly square
Install
Terminal
npx shadcn@latest add @mewo/picture-figureNot using the registry directory?
Point the CLI straight at the item URL:
npx shadcn@latest add https://www.mewo-ui.com/r/picture-figure.json
Props
| Prop | Type | Default | Description |
|---|---|---|---|
src / alt | string / string | a placeholder photo | The picture. |
ratio | number | 4 / 5 | Width ÷ height of the frame. Its height comes from className. |
caption | ReactNode | — | Hangs under the picture, centred and at least 32rem wide, taking no room (a credit, say). |
className | string | — | Merged onto the figure: give it its height here. |