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
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
dropdown | boolean | false | Shows the chevron that says the button opens a list. Set aria-expanded with it. |
...button | ButtonHTMLAttributes | Everything 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