Skip to main content

Chip

<gstock-chip> | GstockChip

API

Propiedades

Nombre Descripción Reflects Tipo Por defecto
pill Draws a pill-style chip with rounded edges. Reflects boolean false
removable Makes the chip removable and shows a remove button. boolean false
size The size of the chip. Reflects 'small' | 'medium' | 'large' 'medium'
color The color of the chip. Reflects 'primary' | 'secondary' | 'success' | 'warning' | 'danger' 'primary'
variant The variant of the chip. Reflects 'outlined' | 'plain' | 'solid' 'solid'
updateComplete

A read-only promise that resolves when the component has finished updating.

Aprende más sobre atributos y propiedades .

Eventos

Nombre React Event Descripción Event Detail
gstock-remove-event onGstockRemoveEvent Emitted when the remove button is activated. -

Aprende más sobre eventos .

Slots

Nombre Descripción
default The chip’s content.

Aprende más sobre slots .

Partes

Nombre Descripción
base The component’s base wrapper.
content The chip’s content.
remove-button The chip’s remove button, an <gstock-icon-button>.
remove-button__base The remove button’s exported base part.

Aprende más sobre partes CSS .

Dependencias

Este componente importa automáticamente las siguientes dependencias.