---
title: "Badges, icons and tooltips"
description: "Put a label, an icon or a definition inside a sentence."
---

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

A new endpoint is Beta. Send an idempotency key 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.
```

## Badge props

- `color` (string, default: `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.

- `size` (string, default: `md`): `xs`, `sm`, `md` or `lg`.

- `shape` (string, default: `pill`): `rounded` gives squarer corners.

- `icon` (string): An icon before the text.

- `stroke` (boolean, default: `false`): Outlines the badge instead of filling it.

- `disabled` (boolean, default: `false`): Dims the badge.

## Icon props

- `icon` (string, required): A Lucide or Font Awesome name, a brand, or an image path. See [icons](/components/overview#icons).

- `size` (number): Size in pixels. Without it, the icon matches the text.

- `color` (string): Hex, a color name, or `rgb()` or `hsl()`.

## Tooltip props

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

- `tip` (string): The text in the tooltip.

- `headline` (string): A bold line above the tip.

- `cta` (string): The text of a link shown beside the tip. It needs `href`.

- `href` (string): Where the link goes. It needs `cta`.
