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.

Základné použitie

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 chip is active and displays a check icon.
Attributeactive
Typeboolean
Defaultfalse

color

DescriptionChip colour. Default options include primary, complete, success, warning, danger, info and default.
Attributecolor
Type"primary." | "complete" | "success" | "warning" | "danger" | "info" | "default" | string
Defaultundefined

disabled

DescriptionIf true, the chip is deactivated and cannot be interacted with.
Attributedisabled
Typeboolean
Defaultfalse

removable

DescriptionIf true, the chip can be removed by clicking the remove button.
Attributeremovable
Typeboolean
Defaultfalse

Eventy

NameDescription
wje:chip-removeIssued when the chip is removed.

Metódy

No public methods available for this component.

CSS Shadow Parts

NameDescription
nativeRefers to the native wrapper element of the chip.
removeButton to remove the chip.

CSS Custom Vlastnosti

NameDescription
--wje-chip-border-radiusRounding the edges of the chip.
--wje-chip-background-colorChip background colour.
--wje-chip-colorChip text colour.
--wje-chip-paddingInternal chip offset.

Sloty

NameDescription
``The main content of the chip.
endSlot for additional content at the end of the chip.