since 0.5.0Source
Badge row shown underneath a page heading.
Props
function Badges(props: { badges?: Array<{ icon?: string; label: string; url?: string; }>;}): JSX.Element;Data Source
- page frontmatter
badges themeConfig.badges.icons
Behavior
- omitted when no badges are provided
- resolves
badge.iconfromthemeConfig.badges.icons - supports icon values as raw SVG strings
- supports icon values as Solid components
- uses linked badges when
urlis present - uses static badges when
urlis omitted - falls back to label-only badges when an icon key is missing
Last updated: 4/10/26, 11:49 PM