SakaniUI

Suggestion Chip

A suggested prompt: a starter card for the empty screen, or a follow-up pill under a reply.

Choosing one is up to you: fill the prompt box with label and send it. Starters rise 8px and fade in 50ms apart when you give each an index; hover lifts a chip 1px and strengthens its border.

Starter

A card with an icon tile, a title and a one-line hint. Give each an index so they arrive one after another.

Follow-up

A pill with an arrow, for under a reply.

Props

PropTypeDefaultDescription
variant'starter' | 'follow-up''follow-up'A card with a hint, or a pill with an arrow.
labelstringThe prompt. For a starter it is the title.
hintstringStarter only: a one-line hint under the title.
iconIconComponentStarter: the icon in the tile. Follow-up: defaults to an arrow.
indexnumberStarter: its place in the row, so each rises 50ms after the one before.
onClickMouseEventHandlerEvery native button attribute is forwarded.