Design systém4.2

gov-card

Properties

PropertyAttributeDescriptionTypeDefault
accessibleTriggerLabelaccessible-labelAdds accessible label for the collapsible button that is only shown for screen readers.stringundefined
accessibleTriggerLabelledByaccessible-labelledbyA string of identifiers that indicate alternative label elements for collapsible cardstringundefined
clickableclickableDefines weather the card can be clickable with hover effectbooleanfalse
collapsiblecollapsibleDefines weather the card can be collapsiblebooleanfalse
directiondirectionCard direction"horizontal" | "vertical""vertical"
hrefhrefLink on whole cardstringundefined
openopenDefines whether the card is open or closedbooleantrue
targettargetSame as original parameter"_blank" | "_new" | "_self"undefined

Events

EventDescriptionType
gov-toggleCalled when the card toggle state changesCustomEvent<GovCardChangeEvent>

Methods

validateAccessibility() => Promise<void>

Validate the accessible attributes of the component

Returns

Type: Promise<void>

Dependencies

Depends on

Graph


Built with StencilJS