Browse the docs

Callout

A strip torn off a pad. Use it for things people need to know before they act, not for decoration.

Server ComponentWCAG AASince v0.1

Live example

Two friends are on this board

Rosa and Jun are both sketching right now.

Not saved yet

Save your sketch before you close the tab.

Couldn’t reach the server

Your sketch is saved on this device.

Sketch received

Reference number 24-1187.

Change every prop live in the playground.

Props

PropTypeDefaultWhat it does
titlerequiredReactNodenoneThe headline, lettered in Sketchpop.
actionReactNodenoneA button under the text, e.g. "Try again".
buddyboolean | BuddyMoodnoneA character peeks over the strip: true picks one for the tone (Specs, Snooze, Bix, Pip), or name a mood.
childrenReactNodenoneBody text under the title.
classNamestringnoneExtra class on the strip.
headingLevel2 | 3 | 43Heading level of the title.
role"alert" | "status"none (it is just content)alert for errors that need attention right away.
tiltnumber-0.5Rotation in degrees.
tone"success" | "error" | "info" | "warn"infoSets the color and icon: info, warn, error or success.

Use it well

DoPut the callout right before the action it's about.
Don'tStack callouts at the top of a page. People stop reading them.

Accessibility

  • Every tone has an icon and a title; color only repeats it.
  • Pass role="alert" for errors that need attention right away.
Five stamps!

All aboard.

You took the whole tour. Here's Holo Pip, a foil sticker for riders who finish. It's in your playground tray now, for good.