Badge
Badge sú inline-block elementy, ktoré majú informatívny charakter a zvyčajne sa zobrazujú v blízkosti iného elementu. Používajú sa ako upozornenie, že k elementu sú priradené ďalšie elementy, a informujú používateľa o ich počte.
Použitie
Ak chcete použiť komponent Badge, zahrňte ho do HTML s požadovanými atribútmi.
Úprava štýlov
Farby
Atribúty a Vlastnosti
color
Description | The color to use from your application's color palette. The default options are: "primary" , "success" , "warning" , "warning" , "complete" , "info" , and "menu" . For more information on colors, visit Customization Basics. |
Attribute | color |
Type | "complete" | "danger" | "info" | "menu" | "primary" | "success" | "warning" | string | undefined |
Default | undefined |
Eventy
No events available for this component.
Metódy
No public methods available for this component.
CSS Shadow Parts
No CSS shadow parts available for this component.
CSS Custom Vlastnosti
Name | Description |
---|---|
--wj-chip-border-radius | Adjusts the roundness of the badge element |
Sloty
Name | Description |
---|---|
`` | The contents are placed between the named slots. |
end | The content is placed on the right in the LTR and on the left in the RTL. |
icon-only | It should be applied to an icon in a button that does not contain text. |
start | The content is placed on the left in the LTR and on the right in the RTL. |