Data displayMediaShape
Searchastronomic.dev# MediaShape
For a photo with a shaped frame: a curved cutout where a badge, a button or a figure sits, or an arch, ticket or blob shape.
Interactive: inline script.
## Usage
```astro
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
```
## Examples
### Corner badge
A Badge in the bottom-end slot: the frame is cut around it, and the page shows through the cut.
```astro
---
import Badge from "@astronomic-dev/ui/components/Badge.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. The Badge sits in the bottom-end corner, and the frame is cut around it.
import desk from "../../photos/studio-desk.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={desk} alt="A laptop, a framed print and a cactus on a light wood desk." ratio="4/3">
<Badge slot="bottom-end" status="positive">Now booking</Badge>
</MediaShape>
</div>
```
### Corner button
A round icon link in a square notch: a Button with an aria-label, made round at the large control size.
```astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import Icon from "@astronomic-dev/ui/components/Icon.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
import ArrowUpRight from "@lucide/astro/icons/arrow-up-right";
// Your own photo. A round icon link in the bottom-end corner: the large control size, made square and round.
import sketch from "../../photos/sketching-wireframes.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={sketch} alt="A hand sketching page layouts on paper beside a mug." ratio="4/3">
<Button slot="bottom-end" href="#process" aria-label="See the Astronomic process" class="size-control-lg rounded-full px-0 tap-area"><Icon icon={ArrowUpRight} /></Button>
</MediaShape>
</div>
```
### Two corners
A small label box (a label and a title, from type roles) in top-start, and a round icon link in bottom-end. Each corner gets its own notch. The label box is bare text, so it takes notch-float and floats clear of the frame's edges; the icon link sits flush in its corner.
```astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import Icon from "@astronomic-dev/ui/components/Icon.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
import ArrowRight from "@lucide/astro/icons/arrow-right";
// Your own photo. A small label box in top-start, built from type roles, and a round icon link in bottom-end. The label
// is bare text, so it takes notch-float and floats clear of the frame's edges; the Button sits flush in its corner.
import notebook from "../../photos/leather-notebook.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={notebook} alt="A leather notebook, a pen and a clip on pale paper." ratio="4/3">
<p slot="top-start" class="notch-float m-0 grid gap-0.5">
<span class="text-small font-medium text-muted">Case study</span>
<span class="text-subhead font-semibold text-fg">Field notes</span>
</p>
<Button slot="bottom-end" href="#field-notes" aria-label="Read the Field notes case study" class="size-control-lg rounded-full px-0 tap-area"><Icon icon={ArrowRight} /></Button>
</MediaShape>
</div>
```
### Bottom tab
A Button in bottom-center: a tab cut from the middle of the bottom edge, for one call to action.
```astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. One call to action in a tab cut from the middle of the bottom edge.
import tower from "../../photos/concrete-slab.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={tower} alt="A concrete tower with three small round windows and a band of copper panels, seen from below against a pale sky." ratio="4/3">
<Button slot="bottom-center" href="#book" class="tap-area">Book a call</Button>
</MediaShape>
</div>
```
### Big stat corner
A tall photo (ratio="4/5") with one figure in top-end, in the stat role sized to the frame, so the deep notch fits it at any width. Bare text, so it takes notch-float.
```astro
---
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
import { cn } from "@astronomic-dev/ui/lib/cn.ts";
import { statType } from "@astronomic-dev/ui/lib/display.ts";
import { statEms } from "@astronomic-dev/ui/lib/stat.ts";
// Your own photo, tall (4/5), with a deep notch for one figure in top-end.
import dana from "../../photos/portrait-glasses.webp";
// The value is in the stat role, which sizes to the frame's width: --stat-ems set to its own width over 0.4 makes it
// about 40% of the frame, so it fits the corner's 45% at any width. Bare text has no edge of its own, so the box takes
// notch-float: the gap on its outer sides too, so it floats clear of the frame's edges. The figure's line box is
// trimmed to its cap height at the top (text-box), so the space above it matches the gap at its side.
const value = "12 yrs";
const ems = statEms(value) / 0.4;
---
<div class="mx-auto max-w-md">
<MediaShape src={dana} alt="Dana Brooks, a woman with short fair hair and glasses, in a leather jacket." ratio="4/5" focalPoint="50% 30%">
<p slot="top-end" class="notch-float m-0 grid gap-1">
<span class={cn(statType, "[text-box:trim-start_cap_alphabetic]")} style={`--stat-ems: ${ems}`}>{value}</span>
<span class="text-small text-muted">in practice</span>
</p>
</MediaShape>
</div>
```
### Slanted corner
angle={40}: the notch's wall that meets the bottom edge slopes, so the cut widens toward it.
```astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. angle={40} slopes the notch's inner wall, the one that meets the bottom edge, so the cut widens toward that edge.
import shelves from "../../photos/studio-shelves.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={shelves} alt="Stacks of plates and bowls on two white shelves." ratio="4/3" angle={40}>
<Button slot="bottom-end" href="#discovery" class="tap-area">Book now</Button>
</MediaShape>
</div>
```
### Slanted tab
angle={35} on a bottom tab: both walls slope, so the tab is a trapezoid.
```astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. angle={35} slopes both walls of the bottom tab, so it is a trapezoid.
import tower from "../../photos/concrete-slab.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={tower} alt="A concrete tower with three small round windows and a band of copper panels, seen from below against a pale sky." ratio="4/3" angle={35}>
<Button slot="bottom-center" href="#work" class="tap-area">See the work</Button>
</MediaShape>
</div>
```
### Round bite
shape="bite": a round bite out of the bottom-end corner that hugs one round item, here a round play link with an aria-label. The bite is a circle on the item's larger side plus the gap, so it is made for a round item: a square one's corners would sit on the photo.
```astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import Icon from "@astronomic-dev/ui/components/Icon.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
import Play from "@lucide/astro/icons/play";
// Your own photo. A round bite out of the bottom-end corner, hugging a round play link.
import plants from "../../photos/plants-shelf.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={plants} alt="Two potted plants on a wooden shelf." shape="bite" ratio="4/3">
<Button slot="bottom-end" href="#studio-tour" aria-label="Play the studio tour" class="size-control-lg rounded-full px-0 tap-area"><Icon icon={Play} /></Button>
</MediaShape>
</div>
```
### Arch
shape="arch": a round top on a tall photo (ratio="4/5"). An arch wants a tall ratio; on a wide one the top flattens. It takes no items.
```astro
---
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. An arch wants a tall ratio, so its round top stays a half circle.
import portrait from "../../photos/portrait-curly-hair.webp";
---
<div class="mx-auto max-w-sm">
<MediaShape src={portrait} alt="A woman with curly dark hair looking at the camera." shape="arch" ratio="4/5" />
</div>
```
### Ticket
shape="ticket": a round punch in the middle of each side, for an event or an offer, with a caption. It takes no items.
```astro
---
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. A round punch in the middle of each side, for an event or an offer.
import shelves from "../../photos/studio-shelves.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={shelves} alt="Stacks of plates and bowls on two white shelves." shape="ticket" caption="Open studio night, November 14" />
</div>
```
### Blob
shape="blob": an uneven, soft outline on a square photo (ratio="1/1"). It takes no items.
```astro
---
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. An uneven, soft outline, on a square frame.
import plants from "../../photos/plants-shelf.webp";
---
<div class="mx-auto max-w-sm">
<MediaShape src={plants} alt="Two potted plants on a wooden shelf." shape="blob" ratio="1/1" />
</div>
```
## Props
### MediaShape
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `src` | `ImageSource` | None | Required. A URL, or an imported image (Astro's image metadata): its width and height are used too. |
| `alt` | `string` | None | Required. What the image shows. Use `""` when it is only decoration. |
| `ratio` | `"16/9" \| "4/3" \| "1/1" \| "3/4"` | `"16/9"` | The frame's shape as width/height; any other pair works too. The image fills it and is cropped. |
| `ratioClass` | `string` | None | Classes for the frame's shape in place of `ratio`, for a shape that changes with the width (aspect-[4/3] md:aspect-video). When set, the image has no inline ratio and `ratio` is not used. |
| `focalPoint` | `string` | None | The point to keep in view when the frame crops the image, as `object-position`: one or two parts, each a keyword (`left`, `center`, `right`, `top`, `bottom`) or a percentage, x then y ("50% 20%", "top", "left 30%" is left and 30% down). Anything else throws. Default: the center. |
| `caption` | `string` | None | A short line under the image, in muted text. The whole becomes a `<figure>`. |
| `loading` | `"lazy" \| "eager"` | `"lazy"` | Set eager for an image near the top of the page. |
| `fetchpriority` | `"high" \| "low" \| "auto"` | None | Set high for the page's largest image (a post's header photo), so the browser fetches it first. Passed to your image component too. |
| `width` | `number` | None | The file's width, so the browser keeps the space. Default: the imported image's own. |
| `height` | `number` | None | The file's height. Default: the imported image's own. |
| `imageComponent` | `ImageComponent` | None | Your own image component, so the photo gets your srcset: Astro's <Image> as it is, or a small wrapper for your CMS (type its Props as ImageComponentProps in lib/image.ts). The frame (ratio, corners, edge, dim, fill) then sits on a box around it; the component gets src as you gave it, alt, width, height, loading, decoding, sizes, a class that fills the box, and style with only the focal point. See "Your own images" in the kit README. |
| `sizes` | `string` | None | How wide the image shows, as the sizes attribute, for imageComponent's srcset or for srcset. The plain <img> ignores it without srcset. |
| `srcset` | `string` | None | Ready image candidates for the plain <img> ("/a-400.webp 400w, /a-800.webp 800w"), such as your CMS's or getImage()'s URLs, when you use no image component. It then also writes sizes. Not used with imageComponent. |
| `class` | `string` | None | More classes, merged with cn(), so yours win on conflicts. |
| `shape` | `"notch" \| "bite" \| "arch" \| "ticket" \| "blob"` | `"notch"` | The frame's shape. notch (the default) cuts a curved notch where each item sits, sized to it, in any of the five slots. bite cuts a round bite around one round bottom-end item (a square item's corners would sit on the photo). arch rounds the top (it wants a tall ratio, such as "4/5"), ticket punches a round hole in the middle of each side, and blob draws an uneven, soft outline: these three take no items (the build stops). Every shape keeps the 16/9 default ratio. For a round frame, use Media's shape="circle"; for one plain cut corner with no item, Media's shape="cut". |
| `angle` | `number` | None | The slope of a notch's walls, in degrees, clamped to 0–60. A corner notch slopes the wall that meets the top or bottom edge; a bottom tab slopes both. Default: the theme's `--ui-notch-angle` (0deg, straight walls). For notches only: the other shapes ignore it. |
| `tone` | `"page" \| "surface" \| "surface-2" \| "band" \| "cta"` | `"page"` | The ground the part sits on: the cut shows it. It picks the plate fill (bg, surface, surface-2, the band, the CTA band) and, on band and cta, the focus utility for the items. Give a Button the matching tone (page for page, surface and surface-2; band; cta). |
| Slot | Description |
| --- | --- |
| `top-start` | One element: a Button, a Badge, or one box you lay out. Its notch fits it: the item plus the gap (--ui-notch-gap) between it and the cut's walls, up to 45% of the frame each way (a longer item wraps; keep slot labels short, since a Button label does not wrap). Badges and Buttons sit flush with the photo's edges; put notch-float on bare text so it floats clear of them. top-start and top-end sit on the top edge, start and end following the writing direction. Which shapes take items: notch in any slot, bite in bottom-end only, arch, ticket and blob in none. |
| `top-end` | One element, as top-start. Its notch fits it: the item plus the gap (--ui-notch-gap) between it and the cut's walls, up to 45% of the frame each way (a longer item wraps; keep slot labels short, since a Button label does not wrap). Badges and Buttons sit flush with the photo's edges; put notch-float on bare text so it floats clear of them. |
| `bottom-start` | One element, as top-start. Its notch fits it: the item plus the gap (--ui-notch-gap) between it and the cut's walls, up to 45% of the frame each way (a longer item wraps; keep slot labels short, since a Button label does not wrap). Badges and Buttons sit flush with the photo's edges; put notch-float on bare text so it floats clear of them. |
| `bottom-center` | One element, centered on the bottom edge: a tab that fits the item plus the gap on its top and sides (flush with the bottom edge; notch-float on bare text adds the gap below it too), up to 60% of the frame's width. Keep its label short: a Button label does not wrap. It cannot share the bottom edge with bottom-start or bottom-end (the build stops). |
| `bottom-end` | One element, as top-start. Its notch fits it: the item plus the gap (--ui-notch-gap) between it and the cut's walls, up to 45% of the frame each way (a longer item wraps; keep slot labels short, since a Button label does not wrap). Badges and Buttons sit flush with the photo's edges; put notch-float on bare text so it floats clear of them. The only slot shape="bite" takes: there the bite is a circle on the item's center, half its larger side plus the gap. It is made for a round item, such as a round icon Button: a square item's corners would sit on the photo. |
| `caption` | Your own caption content, in place of caption (for a link or a credit). |
Any other attribute goes on the outer <figure> or <div>; it never replaces the part's own data-shape. The part takes its parent's full width (a width class replaces it): in a parent that sizes to its content (w-fit, inline-block), give it a width.
## Accessibility
| Key | Action |
| --- | --- |
| Tab | Moves through the slot items in the fixed order: top-start, top-end, bottom-start, bottom-center, bottom-end. Each item keeps its own keys. |
- Items keep their own names and roles; the photo's alt describes the photo only.
- Items read and Tab in a fixed order: top-start, top-end, bottom-start, bottom-center, bottom-end.
- Give each control a 44px hit area on touch: a plain kit text Button is the control height (34px at 390), so add tap-area to a text Button in a slot, as the examples do.
- Pick tone for the ground the part sits on, and give a Button the matching tone: the cutout shows that ground.
- Without the clip (older browsers) or before the script measures, each item sits on a small plate in the tone's fill, so its text never sits on the photo.
- Right to left needs the dir attribute (dir="rtl" on the page or a parent): the cut mirrors by :dir(rtl), which reads that attribute, while the slot boxes follow the CSS direction. Setting only the CSS direction would move the items but not their cuts.
MediaShape
ProFor a photo with a shaped frame: a curved cutout where a badge, a button or a figure sits, or an arch, ticket or blob shape.
- File
- MediaShape.astro
- Group
- Data display
- Kind
- Interactive: inline script
- Examples
- 11
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
Corner badge
A Badge in the bottom-end slot: the frame is cut around it, and the page shows through the cut.
This preview did not load.
examples/mediashape/main.astro
---
import Badge from "@astronomic-dev/ui/components/Badge.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. The Badge sits in the bottom-end corner, and the frame is cut around it.
import desk from "../../photos/studio-desk.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={desk} alt="A laptop, a framed print and a cactus on a light wood desk." ratio="4/3">
<Badge slot="bottom-end" status="positive">Now booking</Badge>
</MediaShape>
</div>Corner button
A round icon link in a square notch: a Button with an aria-label, made round at the large control size.
Two corners
A small label box (a label and a title, from type roles) in top-start, and a round icon link in bottom-end. Each corner gets its own notch. The label box is bare text, so it takes notch-float and floats clear of the frame's edges; the icon link sits flush in its corner.
This preview did not load.
examples/mediashape/two-corners.astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import Icon from "@astronomic-dev/ui/components/Icon.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
import ArrowRight from "@lucide/astro/icons/arrow-right";
// Your own photo. A small label box in top-start, built from type roles, and a round icon link in bottom-end. The label
// is bare text, so it takes notch-float and floats clear of the frame's edges; the Button sits flush in its corner.
import notebook from "../../photos/leather-notebook.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={notebook} alt="A leather notebook, a pen and a clip on pale paper." ratio="4/3">
<p slot="top-start" class="notch-float m-0 grid gap-0.5">
<span class="text-small font-medium text-muted">Case study</span>
<span class="text-subhead font-semibold text-fg">Field notes</span>
</p>
<Button slot="bottom-end" href="#field-notes" aria-label="Read the Field notes case study" class="size-control-lg rounded-full px-0 tap-area"><Icon icon={ArrowRight} /></Button>
</MediaShape>
</div>Bottom tab
A Button in bottom-center: a tab cut from the middle of the bottom edge, for one call to action.
This preview did not load.
examples/mediashape/bottom-tab.astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. One call to action in a tab cut from the middle of the bottom edge.
import tower from "../../photos/concrete-slab.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={tower} alt="A concrete tower with three small round windows and a band of copper panels, seen from below against a pale sky." ratio="4/3">
<Button slot="bottom-center" href="#book" class="tap-area">Book a call</Button>
</MediaShape>
</div>Big stat corner
A tall photo (ratio="4/5") with one figure in top-end, in the stat role sized to the frame, so the deep notch fits it at any width. Bare text, so it takes notch-float.
This preview did not load.
examples/mediashape/big-stat.astro
---
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
import { cn } from "@astronomic-dev/ui/lib/cn.ts";
import { statType } from "@astronomic-dev/ui/lib/display.ts";
import { statEms } from "@astronomic-dev/ui/lib/stat.ts";
// Your own photo, tall (4/5), with a deep notch for one figure in top-end.
import dana from "../../photos/portrait-glasses.webp";
// The value is in the stat role, which sizes to the frame's width: --stat-ems set to its own width over 0.4 makes it
// about 40% of the frame, so it fits the corner's 45% at any width. Bare text has no edge of its own, so the box takes
// notch-float: the gap on its outer sides too, so it floats clear of the frame's edges. The figure's line box is
// trimmed to its cap height at the top (text-box), so the space above it matches the gap at its side.
const value = "12 yrs";
const ems = statEms(value) / 0.4;
---
<div class="mx-auto max-w-md">
<MediaShape src={dana} alt="Dana Brooks, a woman with short fair hair and glasses, in a leather jacket." ratio="4/5" focalPoint="50% 30%">
<p slot="top-end" class="notch-float m-0 grid gap-1">
<span class={cn(statType, "[text-box:trim-start_cap_alphabetic]")} style={`--stat-ems: ${ems}`}>{value}</span>
<span class="text-small text-muted">in practice</span>
</p>
</MediaShape>
</div>Slanted corner
angle={40}: the notch's wall that meets the bottom edge slopes, so the cut widens toward it.
This preview did not load.
examples/mediashape/slanted-corner.astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. angle={40} slopes the notch's inner wall, the one that meets the bottom edge, so the cut widens toward that edge.
import shelves from "../../photos/studio-shelves.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={shelves} alt="Stacks of plates and bowls on two white shelves." ratio="4/3" angle={40}>
<Button slot="bottom-end" href="#discovery" class="tap-area">Book now</Button>
</MediaShape>
</div>Slanted tab
angle={35} on a bottom tab: both walls slope, so the tab is a trapezoid.
This preview did not load.
examples/mediashape/slanted-tab.astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. angle={35} slopes both walls of the bottom tab, so it is a trapezoid.
import tower from "../../photos/concrete-slab.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={tower} alt="A concrete tower with three small round windows and a band of copper panels, seen from below against a pale sky." ratio="4/3" angle={35}>
<Button slot="bottom-center" href="#work" class="tap-area">See the work</Button>
</MediaShape>
</div>Round bite
shape="bite": a round bite out of the bottom-end corner that hugs one round item, here a round play link with an aria-label. The bite is a circle on the item's larger side plus the gap, so it is made for a round item: a square one's corners would sit on the photo.
This preview did not load.
examples/mediashape/round-bite.astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import Icon from "@astronomic-dev/ui/components/Icon.astro";
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
import Play from "@lucide/astro/icons/play";
// Your own photo. A round bite out of the bottom-end corner, hugging a round play link.
import plants from "../../photos/plants-shelf.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={plants} alt="Two potted plants on a wooden shelf." shape="bite" ratio="4/3">
<Button slot="bottom-end" href="#studio-tour" aria-label="Play the studio tour" class="size-control-lg rounded-full px-0 tap-area"><Icon icon={Play} /></Button>
</MediaShape>
</div>Arch
shape="arch": a round top on a tall photo (ratio="4/5"). An arch wants a tall ratio; on a wide one the top flattens. It takes no items.
This preview did not load.
examples/mediashape/arch.astro
---
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. An arch wants a tall ratio, so its round top stays a half circle.
import portrait from "../../photos/portrait-curly-hair.webp";
---
<div class="mx-auto max-w-sm">
<MediaShape src={portrait} alt="A woman with curly dark hair looking at the camera." shape="arch" ratio="4/5" />
</div>Ticket
shape="ticket": a round punch in the middle of each side, for an event or an offer, with a caption. It takes no items.
This preview did not load.
examples/mediashape/ticket.astro
---
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. A round punch in the middle of each side, for an event or an offer.
import shelves from "../../photos/studio-shelves.webp";
---
<div class="mx-auto max-w-md">
<MediaShape src={shelves} alt="Stacks of plates and bowls on two white shelves." shape="ticket" caption="Open studio night, November 14" />
</div>Blob
shape="blob": an uneven, soft outline on a square photo (ratio="1/1"). It takes no items.
This preview did not load.
examples/mediashape/blob.astro
---
import MediaShape from "@astronomic/ui-pro/components/MediaShape.astro";
// Your own photo. An uneven, soft outline, on a square frame.
import plants from "../../photos/plants-shelf.webp";
---
<div class="mx-auto max-w-sm">
<MediaShape src={plants} alt="Two potted plants on a wooden shelf." shape="blob" ratio="1/1" />
</div>