Skip to content
Badged content
Flag - Web Component
The Flag component can be used imported from:
Playground
Parameters
...
Important!
In the examples of the following explanations we are applying a style to the content of the badge to better visualizing the positioning of the badge in relation to the content.
Slots
This component has slots. Check the documentation about how to use the slots.
Name | Tags | Description |
---|---|---|
default | span | Content of the badge. |
Parameters use
content
The content to be assigned to the badge. It uses the default
slot too.
Use te attribute if it's only for text. If you need to use HTML, use the slot.
config
Browser support
Detected engine:
Chromium
Webkit
Gecko