Skip to main content

Chip

shadow

Komponent Chip je univerzálny element, ktorý predstavuje malý vizuálny blok obsahujúci rôzne ďalšie elementy, ako napríklad avatary, text a ikony. Ponúka možnosti prispôsobenia farieb, stavov a ďalšie.

Basic Usage

Vkladanie ďalších prvkov

V elemente chip je možné zobraziť aj ďalšie elementy, napríklad elementy avatar, label a icon.

Štýlovanie

Farebné varianty

Štýlovanie pomocou CSS custom vlastností

Atribúty a Vlastnosti

active

DescriptionIf true, the check icon is displayed
Attributeactive
Typeboolean
Defaultfalse

color

DescriptionSpecifies the background color of the chip element. The default options are "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information, go to: theming.
Attributecolor
Type"danger." | "primary" | "success" | "neutral" | "complete" | "warning" | string | undefined
Defaultundefined

disabled

DescriptionIf true, the user cannot interact with the element.
Attributedisabled
Typeboolean
Defaultfalse

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

NameDescription
--backgroundBackground element chip
--colorElement colour chip

Sloty

No slots available for this component.