Loading...
Installation
Install the following dependencies:
Copy and paste the following code into your project.
Loading...
Update the import paths to match your project setup.
Composition
[app-badge] └── content
Examples
Custom Color
Loading...
Default
Loading...
Filter Chips
Loading...
Inline
Loading...
Removable
Loading...
Sizes
Loading...
Status
Loading...
Variants
Loading...
With Icon
Loading...
API Reference
[app-badge]
Inputs
| Input | Type | Default | Description |
|---|---|---|---|
variant | "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | "default" | Sets the visual style. |
size | "default" | "lg" | "default" | Sets the badge size. |
Utilities
| Export | Angular API |
|---|---|
badgeVariants | Style recipe used to reuse the badge variants. |
BadgeImports | Readonly collection containing the Angular badge directive. |
Angular
React
Solid
Svelte
Vue