Content
Badge & Kbd
:badge adds a colored inline label, :kbd a keyboard key. Both are text directives: they sit
inside a sentence.
Live demo
Syntax
Markdown
MDX
Attributes and props
| Attribute | Type | Default | Description |
|---|---|---|---|
type (Badge) | default | primary | success | warning | danger | default | Color |
Kbd takes no attribute: its content is the key label.
In other formats
| Format | Status | Notes |
|---|---|---|
deck | Available | Rendered in slides, the presenter console and the HTML and PDF exports. |
docs | Available | Through <StoryEmbed slug="…" /> in any page of a site. |
motion | Available | Animated block in a film. |
report | Planned · P6 | Section of a paged report. |
toon | Planned · P7 | Panel of a vertical strip. |
book | Planned · P8 | Block of a printable chapter. |