← Back to Components
Badge
feedbackInline badge for labels
Parameters
variantVariants
defaultsecondarydestructiveoutline
Preview
Badge
Example
{
"kind": "component",
"name": "Badge",
"props": {
"variant": { "expr": "lit", "value": "default" }
},
"children": [
{ "kind": "text", "value": { "expr": "lit", "value": "New" } }
]
}Installation
Copy component files from:
node_modules/@constela/ui/components/badge/