
<Figure>
<Image
src="/share.png"
alt="The Heulen share card"
aspectRatio="1200 / 630"
rounded
/>
<FigureCaption>The picture link previews show.</FigureCaption>
</Figure>import { Image, Figure, FigureCaption } from "@dash/server";Prop | Type | Description |
|---|---|---|
| src | string | |
| alt (required) | string | |
| aspectRatio | string | number | Reserves the space before the picture loads, e.g. `"1 / 1"`, `"4 / 3"` or `1.5`. |
| fit | "cover" | "contain" | How the picture fills its box (default `cover`). |
| width | number | string | A number is pixels; a string is any CSS length. Default: the full width available. |
| height | number | string | |
| loading | "lazy" | "eager" | `lazy` (default) defers loading until the image nears the viewport. |
| rounded | boolean | "full" | Corners follow the theme: `true` is `--radius`, `"full"` is `--radius-full`. |