Image
When to use it
Section titled “When to use it”- To show a photo of a listing, room or place, such as the photo at the top of a property card or the photos in a listing gallery.
- Use radius none for a photo that runs edge to edge inside a card; the card rounds the corners.
- Use radius md (12px) for standalone photos such as the gallery and marketing tiles, and radius sm (6px) for small thumbnails in lists.
- Use 16:9 for wide gallery and hero photos, 3:2 for property cards, 4:3 or 1:1 for thumbnails, and 2:1 for banners and marketing tiles.
When not to use it
Section titled “When not to use it”- For a person’s profile photo: use the Avatar component instead.
Instead: Avatar - For the Horizon Stays brand mark: use the Logo component instead.
Instead: Logo - For icons or small symbols: use an icon from the Icon Library instead.
Instead: Icon Library
Best practice
Section titled “Best practice”From the Figma documentation page (usage node 125:2), as written. These items aren’t carried into Image.intent.json, which has no field for them.
- Choose the ratio first, then resize by width; the ratio is locked, so photos never stretch.
- Crop the photo to fill the frame; don’t letterbox or distort it.
- Keep one ratio and radius across a group, such as every card in a results list.
- Give every meaningful image alt text that describes it; leave alt text empty for purely decorative images.
- Show the placeholder while a photo loads, in the same ratio, so the layout doesn’t jump.
What each variant is for
Section titled “What each variant is for”| Property | Value | What it is for |
|---|---|---|
ratio |
4:3 |
default |
ratio |
1:1 |
Figma doesn’t say. |
ratio |
3:2 |
Figma doesn’t say. |
ratio |
16:9 |
Figma doesn’t say. |
ratio |
2:1 |
Figma doesn’t say. |
radius |
none |
default; edge to edge inside a card |
radius |
sm |
thumbnails |
radius |
md |
standalone photos |
Accessibility
Section titled “Accessibility”- The component renders a native <img>, so loading, decoding and alt behaviour are the browser’s own and every <img> attribute (loading, srcSet, sizes) passes through.
src/components/Image/Image.tsx:34 - alt defaults to an empty string (decorative) and is overridden by the alt prop.
src/components/Image/Image.tsx:29 - The photo is cropped to the frame with object-fit: cover, so it is never stretched.
src/components/Image/Image.css:5
What this version promises
Section titled “What this version promises”From Versioning (VERSIONING.md at b9ffb76):
0.3.0 adds six components on top of 0.2.1: Calendar, Card, Form, Modal, SideBar and Table. It contains twenty-three components, each exported from the package root with its props type: Avatar, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Chip, Dropdown, File, Form, Header, Image, Link, Logo, Modal, ProgressBar, RadioCard, SearchBar, SideBar, Stepper, Table, Toggle. Textfield is exported from the package root as well, with TextfieldProps and TextfieldState, and is public like the others (see decisions.md, 2026-10-07, Textfield). It commits you to their props, prop values and defaults, their hz- class names, the tokens in tokens.css and the three entry points (., ./styles.css, ./tokens.css). Everything in 0.3.0 beyond 0.2.1 is an addition: nothing from 0.2.1 was changed, removed or renamed. A change that breaks any of these on 0.x bumps the version to 0.4.0.
Two things about this release are worth knowing:
- Form, Modal and Table each passed release review with their literal sizes covered by a ruling in decisions.md (Card, SideBar and Calendar have their own), because no size tokens exist for them. Those literals are accepted until the designer adds matching tokens, so a later change to use tokens at the same rendered sizes would be a patch, not a breaking change.
- Dark theme is not verified for Table, and its warning tag has low contrast. The Table docs page says so. Neither is a breaking-change risk, but a fix that changes a token’s value is a patch and is listed in the changelog.
Stories
Section titled “Stories”All Variants
Section titled “All Variants”The single-variant stories (R43None, R43Sm, R43Md, R11None, R11Sm, R11Md, R32None, R32Sm, R32Md, R169None, R169Sm, R169Md, R21None, R21Sm, R21Md) are cells of the variant matrix; the Design tab links each one.
Import
Section titled “Import”import { Image } from "@layerbasesystemic/horizon-design-system";import type { ImageProps, ImageRatio, ImageRadius } from "@layerbasesystemic/horizon-design-system";@layerbasesystemic/horizon-design-system/tokens.css and @layerbasesystemic/horizon-design-system/styles.css must be loaded too; see Developing.
| Prop | Type | Default | Description |
|---|---|---|---|
ratio |
ImageRatio |
"4:3" |
— |
radius |
ImageRadius |
"none" |
— |
ImageProps also extends ImgHTMLAttributes<HTMLImageElement>, so native attributes pass through to the element (Image.tsx:21).
Union types
Section titled “Union types”ImageRatio: 4:3, 1:1, 3:2, 16:9, 2:1
ImageRadius: none, sm, md
Tokens it needs
Section titled “Tokens it needs”Every CSS custom property Image.css reads, with its value in the token build at b9ffb76.
| Token | Light | Dark |
|---|---|---|
--radius-md |
12px |
same as light |
--radius-none |
0px |
same as light |
--radius-sm |
6px |
same as light |
This matches required_tokens in Image.intent.json exactly.
Figma node
Section titled “Figma node”Page Image (57:1634), documentation frame ❖ image (124:2), component set image (123:22). The file is shared with the team only, so the frame and the link ask anyone outside it to sign in.
Variant matrix
Section titled “Variant matrix”ratio (5) × radius (3) = 15 cells. The documentation frame (124:2) lays out ratio (rows: 4:3, 1:1, 3:2, 16:9, 2:1) against radius (columns: none, sm, md). The component set (123:22) publishes all 15 variants, named ratio=4:3, radius=none through ratio=2:1, radius=md. Figma draws no states.
ratio |
radius=none |
radius=sm |
radius=md |
|---|---|---|---|
4:3 |
R43None123:8 |
R43Sm123:7 |
R43Md123:9 |
1:1 |
R11None123:11 |
R11Sm123:10 |
R11Md123:12 |
3:2 |
R32None123:14 |
R32Sm123:13 |
R32Md123:15 |
16:9 |
R169None123:17 |
R169Sm123:16 |
R169Md123:18 |
2:1 |
R21None123:20 |
R21Sm123:19 |
R21Md123:21 |
Each cell is the Storybook story for that combination and its Figma variant node. ImageRatio and ImageRadius are the union types listed on the Code tab. The story that isn’t a single cell (AllVariants) is embedded on the Examples tab.
Themes
Section titled “Themes”The Image frame renders every cell in one theme. It has no separate light and dark frames.
The token build defines 179 tokens for light and redeclares 50 for dark; the Code tab shows Image’s tokens in both.
Values Figma never bound
Section titled “Values Figma never bound”Values on the Figma node that aren’t bound to a variable, and what Image.css at b9ffb76 does with each.
| Layer | Property | Figma value | In the code |
|---|---|---|---|
| image, all 15 variants (123:7 to 123:21) | width | 240px |
width: 100%; |
| image, ratio=4:3 (123:8, 123:7, 123:9) | height | 180px |
aspect-ratio: 4 / 3; |
| image, ratio=1:1 (123:11, 123:10, 123:12) | height | 240px |
aspect-ratio: 1 / 1; |
| image, ratio=3:2 (123:14, 123:13, 123:15) | height | 160px |
aspect-ratio: 3 / 2; |
| image, ratio=16:9 (123:17, 123:16, 123:18) | height | 135px |
aspect-ratio: 16 / 9; |
| image, ratio=2:1 (123:20, 123:19, 123:21) | height | 120px |
aspect-ratio: 2 / 1; |
Figma variables against the token build
Section titled “Figma variables against the token build”| Figma variable | Figma value | Token in the build | Built light value | Agrees |
|---|---|---|---|---|
--radius-none |
0 |
--radius-none |
0px |
yes |
--radius-sm |
6 |
--radius-sm |
6px |
yes |
--radius-md |
12 |
--radius-md |
12px |
yes |