--- title: "Badge" pageTitle: "Fylgja Badge" description: "The Fylgja Badge component allows you to display compact labels or status indicators alongside other UI elements" npm: "@fylgja/badge" git: "https://github.com/fylgja/fylgja/tree/main/components/badge" --- import InstallTabs from "@/components/InstallTabs.astro"; The Fylgja Badge component allows you to display compact labels or status indicators alongside other UI elements. This component is ideal for showing counts, status chips, or small tags — for example: unread counts, state indicators (active/inactive), or categorical markers. ## Installation ## Usage Once installed, you can import the full package with: ```css @import "@fylgja/badge"; ``` ## Examples These examples demonstrate how you can use the Badge component with various layout and content options. ### Cart Item ```html ``` ### Product Item with Sale Label
Sunny Cat Wallpaper 10% more cute

Sunny Cat Wallpaper

Dicta ea a, commodi reiciendis aut doloremque earum fugit ducimus officiis.

€18.99

Orange Fox Wallpaper Orange

Orange Fox Wallpaper

Dicta ea a, commodi reiciendis aut doloremque earum fugit ducimus officiis.

€6.00