Skip to content

Avatar

ReleasedShipped in 0.2.0StorybookFigma node 113:2Source
  • To show the signed-in user’s profile photo, such as in the header.
  • To represent a person (a host, guest or reviewer) next to their name or content.
  • Use md (30px) in the header, sm (24px) in dense lists or inline with text, and lg (40px) where the person is the focus, such as a profile or message thread.
  • For brand or company logos: use the Logo component instead.
    Instead: Logo
  • For listing or content photos: use the Image component instead.
    Instead: Image
  • As a clickable control on its own: place it inside a Button or Link so it has an accessible name.
    Instead: Button or Link

From the Figma documentation page (usage node 113:7), as written. These items aren’t carried into Avatar.intent.json, which has no field for them.

  • Crop photos square with the face centred; the circle clips the corners.
  • Keep one avatar size within the same list or row.
  • Give the image alt text with the person’s name, or leave it empty when the name is shown right beside it.
  • Use only the sm, md and lg sizes; don’t scale an avatar to other sizes.
  • Always supply a photo. There’s no fallback for a missing photo yet.
Property Value What it is for
size sm dense lists, inline with text
size md the header avatar
size lg profiles, message threads

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.