Skip to the page

UI

Suggestion chips

A suggestion chip sends its question when it's tapped.

In use

Ask anything about baseball.

Every number comes from MLB.

The first screen's chips, picked by code for the time of year.
While Dugout loads, grey shapes stand in for the first screen.

Anatomy

  1. ContainerA pill in the soft green tint, at least 44px tall.
  2. LabelThe full question, in Outfit at 15px.

States

Suggestion chipThe tint deepens and the chip lifts 1px.
Rest
Hover
Focus

When to use it

Use chips on the first screen only.

When not to use it

Don’t put chips under an answer or a refusal.

Accessibility

Chips are buttons, and screen readers hear the whole question. While an answer is on its way, they are greyed out.

Tokens

In code: Prompts in the first screen’s src/ds/components/Conversation/FirstScreen.tsx

Tokens
TokenWhat it sets
--ds-brand-softThe fill.
--ds-brand-soft-hoverThe fill under the pointer.
--ds-liftHow far it rises under the pointer.
--ds-radius-pillThe round ends.
--ds-borderThe grey of the loading shapes.
--ds-duration-pulseOne beat of the loading shapes' pulse.
--ds-dot-peak / --ds-dot-stillHow faint a loading shape grows as it pulses. With motion turned down it stays solid.