Skip to content

Badges

The badges component displays Key/Value data in a condensed inline format. You can optionally omit the key or value to display only one.

RaceHalf-Elf
Level7
Initiative+2
AC16
Spell Attack+7

Example

yaml
```badges
items:
  - label: Race
    value: 'Half-Orc'
  - label: Level
    value: '{{ frontmatter.level }}'
  - label: Initiative
    value: '+{{ modifier abilities.dexterity }}'
  - label: AC
    value: '{{ add 10 (modifier abilities.dexterity) }}'
  - label: Spell Attack
    value: '{{ add 10 frontmatter.proficiency_bonus (modifier abilities.intelligence) }}'
```

Configuration

PropertyTypeDefaultDescription
itemsArrayRequiredList of badge items to display
denseBooleanfalseWhether to use smaller badge styling

Item Object

PropertyTypeDefaultDescription
labelStringThe label text
valueString/NumberThe value to display
sublabelStringAdditional text below the value
reverseBooleanfalseWhether to reverse label and value order

† Supports dynamic content templates