gov-card
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
accessibleTriggerLabel | accessible-label | Adds accessible label for the collapsible button that is only shown for screen readers. | string | undefined |
accessibleTriggerLabelledBy | accessible-labelledby | A string of identifiers that indicate alternative label elements for collapsible card | string | undefined |
collapsible | collapsible | Defines weather the card can be collapsible | boolean | false |
direction | direction | Card direction | "horizontal" | "vertical" | "vertical" |
href | href | Link on whole card | string | undefined |
open | open | Defines whether the card is open or closed | boolean | true |
target | target | Same as original parameter | "_blank" | "_new" | "_self" | undefined |
Events
Event | Description | Type |
---|---|---|
gov-toggle | Called when the card toggle state changes | CustomEvent<GovCardChangeEvent> |
Methods
validateAccessibility() => Promise<void>
Validate the accessible attributes of the component
Returns
Type: Promise<void>
Dependencies
Depends on
Graph
Built with StencilJS