Skip to content

UtilityButton

A quiet control on glass, for navigation and tools on top of an image or a coloured ground.

In Figma: Utility Button (node 25:7211). In code: components/ui/utility-button.tsx

Example

import { UtilityButton } from '@/components/ui/utility-button';

<UtilityButton dropdown aria-expanded={open} onClick={toggle}>Find forhandler</UtilityButton>

Props

PropTypeDefaultWhat it does
dropdownbooleanfalseShows the chevron that says the button opens a list. Set aria-expanded with it.
...buttonButtonHTMLAttributesEverything a native button takes.

Do

  • Use it on an image or a coloured ground, where the glass has something to blur.
  • Set data-theme="dark" on a dark ground so the text turns white.

Do not

  • Do not use it as the call to action. That is Button.
  • Do not use it on a plain white page: 5 % glass on white is nearly invisible.

Accessibility

  • With dropdown, set aria-expanded so a screen reader hears whether the list is open.

Tokens it uses

  • color.surface.glass
  • color.text.default
  • radius.sm
  • space.inline.1
  • space.inline.2
  • space.inline.3
  • type.body.md
  • component.utility-button.blur