Design systém4.2

gov-chip

Properties

PropertyAttributeDescriptionTypeDefault
colorcolorStyle variation of the chip."error" | "neutral" | "primary" | "secondary" | "success" | "warning"ButtonColors.PRIMARY
disableddisabledMakes the chip component disabled.booleanfalse
focusablefocusableSame as original parameterbooleantrue
hrefhrefSame as original parameterstringundefined
iconEndicon-endDefinition of the button icon on the left. The icon must be defined in the form "type/name".stringundefined
iconStarticon-startDefinition of the button icon on the left. The icon must be defined in the form "type/name".stringundefined
identifieridentifierCustom chip identifier. Otherwise, it will be generatedstringundefined
sizesizeChip’s size."m" | "s" | "xs"ChipSizes._M
tagtagUsed to change the HTML tag in the chip"a" | "button" | "span""span"
targettargetSame as original parameterstringundefined
typetypeChip’s type"outlined" | "solid"undefined

Events

EventDescriptionType
gov-clickEmitted when the button click.CustomEvent<PointerEvent>

Methods

geRef() => Promise<HTMLButtonElement | HTMLSpanElement | HTMLLinkElement>

Returns a clickable element instance

Returns

Type: Promise<HTMLButtonElement | HTMLSpanElement | HTMLLinkElement>

setFocus() => Promise<void>

Focus button element

Returns

Type: Promise<void>

Dependencies

Used by

Depends on

Graph


Built with StencilJS