Menu
Esc
DocsGitHub TR

Components

Hint

A short helper or status message with a round badge, used under form elements and labels.

Open in Figma

Playground

Use at least 8 characters

Figma variant

👕 Size=Small
🎛 Type=Default
with Form=False

Variants

Default for neutral help; Information, Error, Success and Warning for status. Each tone colors the badge and the text.

default
info
error
success
warning

Sizes

Small is the form size and the default; Medium is for standalone messages.

Medium
Small
SizeBadgeGapTextGlyph
medium24px--layout-smallui/text/regular12px
small16px--layout-tinyui/text small/regular12px

Tokens

ToneBadgeGlyphText
default--color-surface-level-3--color-foreground-medium-emphasis--color-foreground-medium-emphasis
info--color-info--color-on-info--color-on-info
error--color-error--color-on-error--color-error
success--color-success--color-on-success--color-success
warning--color-warning--color-foreground-level-2--color-warning

Notes from Figma

  • Medium uses a 12px gap for Default and Information and 16px for Error, Success and Warning. Code uses 12px (layout-small) for all.
  • The warning glyph uses foreground/level-2 (white in Light, black in Dark), unlike the other on-colors.

Figma to code

FigmaReact
🎛 Type = Default / Information / Error / Success / Warningtone='default' / 'info' / 'error' / 'success' / 'warning'
👕 Size = Medium / Smallsize='medium' / 'small'
with Form = TruewithForm