Lapikit

Chip component

Chip

The Chip component displays small interactive labels, perfect for representing status, categories, filters or actions. Compact, stylable and highly flexible, it can be clicked, disabled, loaded, closed or enriched via slots. It supports different variants, states, densities and sizes, to suit all UI contexts. It can be used alone, in groups, or as the basis for a tag or filter system.

Default

Examples of chip

Base

A simple, non-interactive chip, perfect for static display.

Default

Closable

Adds a close icon to dynamically remove the chip. Useful for filters or modifiable tags.

Default content

Color

Customize the color of the chip’s text and/or background. Ideal for visually highlighting certain elements.

Primary
Secondary
Tertiary
Primary variables
Outline colors

Composable

Shows how to use slots (prepend, append, close) to inject customized content such as icons or rich text.

Default
Outline

Density

Controls vertical density: compact, comfortable or default. Handy for adapting to the overall density of the interface.

compact
default
comfortable

Disabled

Displays a deactivated, non-interactive, visually faded chip.

disabled
anchor
anchor

Event

Demonstrates event management (e.g. click) to trigger an action from a chip.

disabled
anchor
anchor

Loading

Displays a loading status, blocking interactions during processing. Customize content with snippet load.

Default
Outline

Size

Shows different chip sizes, fixed or responsive via an object.

chip xs
chip sm
chip default
chip md
chip lg
chip xl

Snippet

Details advanced snippets (prepend, append, close, load) for creating complex chips.

Default content

State

Applies a predefined status style: info, warning, error, or success.

Info
Success
Warning
Error

Info

Variant

Changes the overall style of the chip with filled or outline variants.

Default
Outline

API Reference

propstypedescriptiondefaulttype_extend
ref $bindableHTMLElementDirect access to DOM elementundefined
isenumMakes the component <a>, <button>, span or div.divbutton | a | div | span
hrefstringAdd path or urlundefined
darkbooleanEnable dark theme for component.false
lightbooleanEnable light theme for the component.false
colorstringApplies a custom color to text or icons.undefined
backgroundstringApply a custom background color.undefined
densityenumControls vertical densitydefaultcompact | comfortable | default
roundedstringControls item rounding (none, sm, md, lg, etc.).md
variantenumSets the visual style of the Chip.filledoutline | filled
activebooleanDisplays active statusfalse
disabledbooleanDeactivates the Chip, preventing any interaction.false
loadingbooleanDisplays a spinner and disables the Chip.false
warningbooleanApply a visual style of warning.false
infobooleanApplies an informative style.false
successbooleanApply a success style (confirmation, validation, etc.).false
errorbooleanApply a visual style of error.false
sizeenum | {enum: enum}Set Chip size: xs, sm, md, lg, xl or full.mdxs | sm | md | lg | xl | full
typeenumApply a visual style of error.buttonbutton
labelstringChip text (if not defined by Snippet children)undefined
closablebooleanDisplays a close iconundefined
noRipplebooleanDeactivates ripple effectfalse
closeSnippetSnippet to customize the closing iconundefined
loadSnippetContent displayed during downloadingundefined
appendSnippetContent displayed after the main contentundefined
prependSnippetContent displayed before main contentundefined

Variables CSS

variabledefaultdescription
–-chip-color–-kit-on-containerText color
–-chip-background–-kit-containerBackground color
–-chip-radius--kit-radius-fullChip edge radius

Chips are often used in a Toolbar or as a complement in a Card to structure information and List.

©2025 Lapikit.

Made with by Nycolaide