Skip to content

Close Button

Design guidelines
HTML
React
Angular
<certara-close-button></certara-close-button>
import { CertaraCloseButton } from '@certara/certara-ui-react';
<CertaraCloseButton />
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-close-button></certara-close-button>

disabled

Attributedisabled
Typeboolean
Defaultfalse
Requiredfalse
DescriptionIf true, the close button will be disabled

inverse

Attributeinverse
Typeboolean
Defaultfalse
Requiredfalse
DescriptionIf true, the close button will have the inverse color theme

label

Attributelabel
Typestring
Default'Close'
Requiredfalse
DescriptionThe accessible label of the close button
NameDescriptionBubbles
certaraClickEvent emitted when the close button is clickedtrue

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

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

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

View component in Figma