Badge
Small labels that add just enough context.
<div style="display:flex;flex-wrap:wrap;gap:8px"><span class="badge">Default</span><span class="badge accent">New release</span><span class="badge outline">Outline</span></div>.badge.outline { border-color: var(--foreground); }Installation
Run the source CLI from a Blocks UI checkout. This package is not published to npm.
node packages/cli/index.js add badgeOr copy the source files above. Include tokens.css and base.css once in your project.
Usage
Use semantic HTML and the shared foundation styles. Interactive primitives also export a decorate function.
<div style="display:flex;flex-wrap:wrap;gap:8px"><span class="badge">Default</span><span class="badge accent">New release</span><span class="badge outline">Outline</span></div>Variants
Choose a variant in the live preview. Add its class to the authored block.
defaultAccessibility & behavior
Semantic HTML, visible focus states, shared contrast-aware tokens, and responsive styles provide an accessible foundation. Preserve labels and heading hierarchy when customizing.
Multiple instances are supported. Layouts adapt to smaller viewports. No npm dependencies are required at runtime.
AEM usage
Primitives belong inside authored blocks, not as nested EDS blocks. Copy their styles and markup into the parent block implementation.
Standalone verified. EDS markup compatible. Live AEM integration has not been verified.