Skip to content

Close button

The close button is used inside of other components, like a toast or a modal, for closing or dismissing its parent component.

Code

<certara-close-button></certara-close-button>

certara-close-button

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabledbooleanfalse
inverseinversebooleanfalse
labellabelstring'Close'

Events

EventDescriptionType
certaraClickCustomEvent<any>

Dependencies

Used by

Graph

graph TD;
certara-alert --> certara-close-button
certara-modal --> certara-close-button
style certara-close-button fill:#f9f,stroke:#333,stroke-width:4px

Accessibility

Screen reader support

Set the aria-label HTML attribute to “Close”. Learn about aria-labels.

Keyboard navigation

When the component is focused, the Enter or Space key executes the button (closes or dismisses the parent component).

Design resources

View component in Figma