Skip to content

Badges, icons and tooltips

Put a label, an icon or a definition inside a sentence.

Updated

These three sit in the middle of a line of text.

A new endpoint is Beta. Send an Idempotency keyA value you send so a retried request isn't run twice. with it, and look for the in the response.

MDX
A new endpoint is <Badge color="orange">Beta</Badge>. Send an <Tooltip tip="A value you send so a retried request isn't run twice." headline="Idempotency key">idempotency key</Tooltip> with it, and look for the <Icon icon="circle-check" color="#256a3e" /> in the response.
colorstringdefault: neutral

The tone. A name containing red or destructive is red, yellow or orange is amber, and blue, green or purple is that color. Anything else is neutral.

sizestringdefault: md
xs, sm, md or lg.
shapestringdefault: pill
rounded gives squarer corners.
iconstring
An icon before the text.
strokebooleandefault: false
Outlines the badge instead of filling it.
disabledbooleandefault: false
Dims the badge.
iconstringrequired

A Lucide or Font Awesome name, a brand, or an image path. See icons.

sizenumber
Size in pixels. Without it, the icon matches the text.
colorstring
Hex, a color name, or rgb() or hsl().

A tooltip appears on hover and on keyboard focus, and Esc hides it.

tipstring
The text in the tooltip.
headlinestring
A bold line above the tip.
ctastring
The text of a link shown beside the tip. It needs href.
hrefstring
Where the link goes. It needs cta.
Was this page helpful?

Report a problem

What’s the problem?

The docs team sees this. Other readers don’t.