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
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
block | block | boolean | false | |
color | color | "brand" | "danger" | "inverse" | "neutral" | "secondary" | "success" | "warning" | 'brand' | |
configAria | config-aria | any | {} | |
disabled | disabled | boolean | false | |
href | href | string | undefined | |
innerClassName | inner-class-name | string | undefined | |
leftIcon | left-icon | string | undefined | |
popoverTarget | popover-target | string | undefined | |
popoverTargetAction | popover-target-action | "hide" | "show" | "toggle" | undefined | |
rightIcon | right-icon | string | undefined | |
showLoader | show-loader | boolean | false | |
size | size | "lg" | "md" | "sm" | 'md' | |
target | target | "_blank" | "_parent" | "_self" | "_top" | "_unfencedTop" | undefined | |
type | type | "button" | "reset" | "submit" | 'button' | |
variant | variant | "default" | "icon" | "link" | "outline" | 'default' |
Events
Event | Description | Type |
---|---|---|
certaraBlur | CustomEvent<void> | |
certaraClick | CustomEvent<any> | |
certaraFocus | CustomEvent<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
NameContextClassCopy
- BrandLight
.btn-icon—brand
- NeutralLight
.btn-icon—neutral
- InverseDark
.btn-icon—inverse
- DangerLight
.btn-icon—danger
- SuccessLight
.btn-icon—success
Selected State
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.).