UI
Suggestion chips
A suggestion chip sends its question when it's tapped.
In use
Ask anything about baseball.
Every number comes from MLB.
Anatomy
- ContainerA pill in the soft green tint, at least 44px tall.
- LabelThe full question, in Outfit at 15px.
States
Suggestion chipThe tint deepens and the chip lifts 1px.
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
| Token | What it sets |
|---|---|
--ds-brand-soft | The fill. |
--ds-brand-soft-hover | The fill under the pointer. |
--ds-lift | How far it rises under the pointer. |
--ds-radius-pill | The round ends. |
--ds-border | The grey of the loading shapes. |
--ds-duration-pulse | One beat of the loading shapes' pulse. |
--ds-dot-peak / --ds-dot-still | How faint a loading shape grows as it pulses. With motion turned down it stays solid. |