- Blade Components
- Docs
- Components
- Badge
Badge
A contained label that shows the status of an element, emphasizes an element, or helps categorize an element with other similar elements.
Badge
Usage
<x-badge>Badge</x-badge>
Component API
Attribute | Default | Description |
---|---|---|
style |
default |
string Possible values default , success , info , warning or danger . |
size |
null |
string || null Possible values null , sm , or lg . |
icon |
null |
string || null |
Style
Control the badge style by supplying the style=""
attribute.
Badge Text
Badge Text
Badge Text
Badge Text
Badge Text
Size
Control the badge size by supplying the size=""
attribute.
Badge Text
Badge Text
Badge Text
Icon
You can control the icon per badge instance by supplying the icon=""
attribute. Any blade-ui-kit/blade-icons compatible icon set can be used.
Badge