Skip to content

Icon buttons

Icon buttons (like Buttons) let users take action. Used for repeated or persistent actions on a page or toolbar, they lack visible labels to simplify the UI.

Code

Variants

<certara-button variant="icon" color="brand">…</certara-button>

certara-button

Properties

PropertyAttributeDescriptionTypeDefault
blockblockbooleanfalse
colorcolor"brand" | "danger" | "inverse" | "neutral" | "secondary" | "success" | "warning"'brand'
configAriaconfig-ariaany{}
disableddisabledbooleanfalse
hrefhrefstringundefined
innerClassNameinner-class-namestringundefined
leftIconleft-iconstringundefined
popoverTargetpopover-targetstringundefined
popoverTargetActionpopover-target-action"hide" | "show" | "toggle"undefined
rightIconright-iconstringundefined
showLoadershow-loaderbooleanfalse
sizesize"lg" | "md" | "sm"'md'
targettarget"_blank" | "_parent" | "_self" | "_top" | "_unfencedTop"undefined
typetype"button" | "reset" | "submit"'button'
variantvariant"default" | "icon" | "link" | "outline"'default'

Events

EventDescriptionType
certaraBlurCustomEvent<void>
certaraClickCustomEvent<any>
certaraFocusCustomEvent<void>

Dependencies

Used by

Depends on

Graph

graph TD;
certara-button --> certara-icon
certara-dropdown --> certara-button
style certara-button fill:#f9f,stroke:#333,stroke-width:4px

Selected State

3
<certara-button variant="icon" color="brand" inner-class-name="btn-icon--active" aria-label="">…</certara-button>

In Practice

Increase clarity

Include a Tooltip to help any users who may be unfamiliar with the icon.

Accessibility

Screen reader support

Set the aria-label HTML attribute to its action (e.g., “Next”, “Delete”, “Resolve”, etc.). Learn about aria-labels.

Design resources

View component in Figma