Icons
A simple and universal graphic symbol representing an action, object, or concept to help guide the user.
Props
type
accessibility | add-circle | add | airplane | alarm | albums | alert-circle | alert | american-football | analytics | aperture | apps | archive | arrow-back-circle | arrow-back | arrow-down-circle | arrow-down | arrow-forward-circle | arrow-forward | arrow-redo-circle | arrow-redo | arrow-undo-circle | arrow-undo | arrow-up-circle | arrow-up | at-circle | at | attach | backspace | bag-add | bag-check | bag-handle | bag | bag-remove | balloon | ban | bandage | bar-chart | barbell | barcode | baseball | basket | basketball | battery-charging | battery-dead | battery-full | battery-half | beaker | bed | beer | bicycle | bluetooth | boat | body | bonfire | book | bookmark | bookmarks | bowling-ball | briefcase | browsers | brush | bug | build | bulb | bus | business | cafe | calculator | calendar-clear | calendar-number | calendar | call | camera | camera-reverse | car | car-sport | card | caret-back-circle | caret-back | caret-down-circle | caret-down | caret-forward-circle | caret-forward | caret-up-circle | caret-up | cart | cash | cellular | chatbox-ellipses | chatbox | chatbubble-ellipses | chatbubble | chatbubbles | checkbox | checkmark-circle | checkmark-done-circle | checkmark-done | chevron-back-circle | chevron-back | chevron-down-circle | chevron-down | chevron-expand | chevron-forward-circle | chevron-forward | chevron-up-circle | chevron-up | clipboard | close-circle | close | cloud-circle | cloud-done | cloud-download | cloud-offline | cloud | cloud-upload | cloudy-night | cloudy | code-download | code | code-slash | code-working | cog | color-fill | color-filter | color-palette | color-wand | compass | construct | contract | contrast | copy | create | crop | cube | cut | desktop | diamond | dice | disc | document-attach | document-lock | document | document-text | documents | download | duplicate | ear | earth | easel | egg | ellipse | ellipsis-horizontal-circle | ellipsis-horizontal | ellipsis-vertical-circle | ellipsis-vertical | enter | exit | expand | extension-puzzle | eye-off | eye | eyedrop | fast-food | female | file-tray-full | file-tray | file-tray-stacked | filenames.ps1 | film | filter-circle | filter-lines | filter | finger-print | fish | fitness | flag | flame | flash-off | flash | flashlight | flask | flower | folder-open | folder | football | footsteps | funnel | game-controller | gift | git-branch | git-commit | git-compare | git-merge | git-network | git-pull-request | glasses | globe | golf | grid | hammer | hand-left | hand-right | happy | hardware-chip | headset | heart-circle | heart-dislike-circle | heart-dislike | heart-half | heart | help-buoy | help-circle | help | home | hourglass | ice-cream | id-card | image | images | infinite | information-circle | information | invert-mode | journal | key | keypad | language | laptop | layers | leaf | library | link | list-circle | list | locate | location | lock-closed | lock-open | log-in | log-out | magnet | mail-open | mail | mail-unread | male-female | male | man | map | medal | medical | medkit | megaphone | menu | mic-circle | mic-off-circle | mic-off | mic | moon | move | musical-note | musical-notes | navigate-circle | navigate | newspaper | notifications-circle | notifications-off-circle | notifications-off | notifications | nuclear | nutrition | open | options | paper-plane | partly-sunny | pause-circle | pause | paw | people-circle | people | person-add | person-circle | person | person-remove | phone-landscape | phone-portrait | pie-chart | pin | pint | pizza | planet | play-back-circle | play-back | play-circle | play-forward-circle | play-forward | play | play-skip-back-circle | play-skip-back | play-skip-forward-circle | play-skip-forward | podium | power | pricetag | pricetags | print | prism | pulse | push | qr-code | radio-button-off | radio-button-on | radio | rainy | reader | receipt | recording | refresh-circle | refresh | reload-circle | reload | remove-circle | reorder-four | reorder-three | reorder-two | repeat | resize | restaurant | return-down-back | return-down-forward | return-up-back | return-up-forward | ribbon | rocket | rose | sad | save | scale | scan-circle | scan | school | search-circle | search | send | server | settings | shapes | share | share-social | shield-checkmark | shield-half | shield | shirt | shuffle | skull | snow | sparkles | speedometer | square | star-half | star | stats-chart | stop-circle | stop | stopwatch | storefront | subway | sunny | swap-horizontal | swap-vertical | sync-circle | sync | tablet-landscape | tablet-portrait | telescope | tennisball | terminal | text | thermometer | thumbs-down | thumbs-up | thunderstorm | ticket | time | timer | today | toggle | trail-sign | train | transgender | trash-bin | trash | trending-down | trending-up | triangle | trophy | tv | umbrella | unlink | videocam-off | videocam | volume-high | volume-low | volume-medium | volume-mute | volume-off | walk | wallet | warning | watch | water | wifi | wine | woman | logo-alipay | logo-amazon | logo-amplify | logo-android | logo-angular | logo-apple | logo-apple-appstore | logo-apple-ar | logo-behance | logo-bitbucket | logo-bitcoin | logo-buffer | logo-capacitor | logo-chrome | logo-closed-captioning | logo-codepen | logo-css3 | logo-designernews | logo-deviantart | logo-discord | logo-docker | logo-dribbble | logo-dropbox | logo-edge | logo-electron | logo-euro | logo-facebook | logo-figma | logo-firebase | logo-firefox | logo-flickr | logo-foursquare | logo-github | logo-gitlab | logo-google | logo-google-playstore | logo-hackernews | logo-html5 | logo-instagram | logo-ionic | logo-ionitron | logo-javascript | logo-laravel | logo-linkedin | logo-markdown | logo-mastodon | logo-medium | logo-microsoft | logo-no-smoking | logo-nodejs | logo-npm | logo-octocat | logo-paypal | logo-pinterest | logo-playstation | logo-pwa | logo-python | logo-react | logo-reddit | logo-rss | logo-sass | logo-skype | logo-slack | logo-snapchat | logo-soundcloud | logo-stackoverflow | logo-steam | logo-stencil | logo-tableau | logo-tiktok | logo-tumblr | logo-tux | logo-twitch | logo-twitter | logo-usd | logo-venmo | logo-vercel | logo-vimeo | logo-vk | logo-vue | logo-web-component | logo-wechat | logo-whatsapp | logo-windows | logo-wordpress | logo-xbox | logo-xing | logo-yahoo | logo-yen | logo-youtube
The icon type to display. See GoAIconType for available icons.
size
1 | 2 | 3 | 4 | 5 | 6 | 2xsmall | xsmall | small | medium | large | xlarge
Sets the size of the icon. Accepts numeric (1-6) or named sizes.
Defaults to
medium.
theme
outline | filled
Sets the icon theme. 'outline' shows stroked icons, 'filled' shows solid icons.
Defaults to
outline.
inverted
boolean
When true, inverts the icon colors for use on dark backgrounds.
Defaults to
false.
fillcolor
string
Sets a custom fill color for the icon. Accepts any valid CSS color value.
opacity
number
Sets the opacity of the icon from 0 (transparent) to 1 (opaque).
Defaults to
1.
title
string
Adds an accessible title to the icon SVG. Used by screen readers.
testId
string
Sets a data-testid attribute for automated testing.
ariaLabel
string
Defines how the icon will be announced by screen readers.
ariacontrols
string
Identifies the element(s) whose contents or presence are controlled by this icon.
ariaexpanded
string
Indicates whether the element controlled by this icon is expanded or collapsed.
role
string
Sets the ARIA role for the icon. Defaults to 'img'. Use 'presentation' for decorative icons.
Defaults to
img.
mt, mr, mb, ml
none | 3xs | 2xs | xs | s | m | l | xl | 2xl | 3xl | 4xl
Apply margin to the top, right, bottom, and/or left of the component.
Restricted access (401)
.error-page-content {
text-align: center;
}
.error-page-icon {
display: flex;
align-items: center;
justify-content: center;
width: 7.5rem;
height: 7.5rem;
border-radius: 50%;
background-color: var(--goa-color-greyscale-100);
}
/* Icon scaled beyond xlarge (2.5rem cap) to match the page-scale visual weight. */
/* Tracked in icon-sizes-above-xlarge gap ticket. */
.error-page-icon goa-icon,
.error-page-icon goab-icon {
transform: scale(1.35);
}
.error-page-underline {
width: 6.875rem;
height: var(--goa-space-xs);
background-color: var(--goa-color-info-default);
}<GoabPageBlock>
<div className="error-page-content">
<GoabBlock
direction="column"
alignment="center"
gap="xl"
width="100%"
mt="3xl"
mb="3xl"
>
<GoabBlock direction="column" alignment="center" gap="m" width="100%">
<div className="error-page-icon">
<GoabIcon role="presentation" type="warning" size="xlarge" />
</div>
<GoabText size="body-m" color="secondary" mt="none" mb="none">
Error 401
</GoabText>
<div className="error-page-underline" aria-hidden="true" />
</GoabBlock>
<GoabBlock direction="column" alignment="center" gap="l" width="100%">
<GoabText tag="h1" size="heading-l" mt="none" mb="none">
Restricted access
</GoabText>
<GoabText size="body-m" mt="none" mb="none">
We cannot provide access to this page without valid credentials. Please sign in or
contact support at{" "}
<GoabLink>
<a href="mailto:cs.licensingsupport@gov.ab.ca">cs.licensingsupport@gov.ab.ca</a>
</GoabLink>{" "}
to request access.
</GoabText>
</GoabBlock>
<GoabButton type="primary" size="compact" onClick={() => (window.location.href = "/")}>
Go to home page
</GoabButton>
</GoabBlock>
</div>
</GoabPageBlock>goHome() {
window.location.href = "/";
}<goab-page-block>
<div class="error-page-content">
<goab-block direction="column" alignment="center" gap="xl" width="100%" mt="3xl" mb="3xl">
<goab-block direction="column" alignment="center" gap="m" width="100%">
<div class="error-page-icon">
<goab-icon role="presentation" type="warning" size="xlarge"></goab-icon>
</div>
<goab-text size="body-m" color="secondary" mt="none" mb="none">Error 401</goab-text>
<div class="error-page-underline" aria-hidden="true"></div>
</goab-block>
<goab-block direction="column" alignment="center" gap="l" width="100%">
<goab-text tag="h1" size="heading-l" mt="none" mb="none">Restricted access</goab-text>
<goab-text size="body-m" mt="none" mb="none">
We cannot provide access to this page without valid credentials. Please sign in or
contact support at
<goab-link>
<a href="mailto:cs.licensingsupport@gov.ab.ca">cs.licensingsupport@gov.ab.ca</a>
</goab-link>
to request access.
</goab-text>
</goab-block>
<goab-button type="primary" size="compact" (onClick)="goHome()">Go to home page</goab-button>
</goab-block>
</div>
</goab-page-block><goa-page-block>
<div style="text-align: center;">
<goa-block direction="column" alignment="center" gap="xl" width="100%" mt="3xl" mb="3xl">
<goa-block direction="column" alignment="center" gap="m" width="100%">
<div
style="display: flex; align-items: center; justify-content: center; width: 7.5rem; height: 7.5rem; border-radius: 50%; background-color: var(--goa-color-greyscale-100);"
>
<goa-icon role="presentation" type="warning" size="xlarge" style="transform: scale(1.35);"></goa-icon>
</div>
<goa-text size="body-m" color="secondary" mt="none" mb="none">Error 401</goa-text>
<div
aria-hidden="true"
style="width: 6.875rem; height: 0.5rem; background-color: var(--goa-color-info-default);"
></div>
</goa-block>
<goa-block direction="column" alignment="center" gap="l" width="100%">
<goa-text as="h1" size="heading-l" mt="none" mb="none">Restricted access</goa-text>
<goa-text size="body-m" mt="none" mb="none">
We cannot provide access to this page without valid credentials. Please sign in or
contact support at
<goa-link>
<a href="mailto:cs.licensingsupport@gov.ab.ca">cs.licensingsupport@gov.ab.ca</a>
</goa-link>
to request access.
</goa-text>
</goa-block>
<goa-button version="2" type="primary" size="compact" onclick="window.location.href='/'">Go to home page</goa-button>
</goa-block>
</div>
</goa-page-block>Server problem (500)
.error-page-content {
text-align: center;
}
.error-page-icon {
display: flex;
align-items: center;
justify-content: center;
width: 7.5rem;
height: 7.5rem;
border-radius: 50%;
background-color: var(--goa-color-greyscale-100);
}
/* Icon scaled beyond xlarge (2.5rem cap) to match the page-scale visual weight. */
/* Tracked in icon-sizes-above-xlarge gap ticket. */
.error-page-icon goa-icon,
.error-page-icon goab-icon {
transform: scale(1.35);
}
.error-page-underline {
width: 6.875rem;
height: var(--goa-space-xs);
background-color: var(--goa-color-info-default);
}<GoabPageBlock>
<div className="error-page-content">
<GoabBlock
direction="column"
alignment="center"
gap="xl"
width="100%"
mt="3xl"
mb="3xl"
>
<GoabBlock direction="column" alignment="center" gap="m" width="100%">
<div className="error-page-icon">
<GoabIcon role="presentation" type="warning" size="xlarge" />
</div>
<GoabText size="body-m" color="secondary" mt="none" mb="none">
Error 500
</GoabText>
<div className="error-page-underline" aria-hidden="true" />
</GoabBlock>
<GoabBlock direction="column" alignment="center" gap="l" width="100%">
<GoabText tag="h1" size="heading-l" mt="none" mb="none">
We are experiencing a problem
</GoabText>
<GoabText size="body-m" mt="none" mb="none">
We cannot load this page right now. Please try again in a few minutes. We apologize
for the inconvenience.
</GoabText>
</GoabBlock>
<GoabButton type="primary" size="compact" onClick={() => (window.location.href = "/")}>
Go to home page
</GoabButton>
</GoabBlock>
</div>
</GoabPageBlock>goHome() {
window.location.href = "/";
}<goab-page-block>
<div class="error-page-content">
<goab-block direction="column" alignment="center" gap="xl" width="100%" mt="3xl" mb="3xl">
<goab-block direction="column" alignment="center" gap="m" width="100%">
<div class="error-page-icon">
<goab-icon role="presentation" type="warning" size="xlarge"></goab-icon>
</div>
<goab-text size="body-m" color="secondary" mt="none" mb="none">Error 500</goab-text>
<div class="error-page-underline" aria-hidden="true"></div>
</goab-block>
<goab-block direction="column" alignment="center" gap="l" width="100%">
<goab-text tag="h1" size="heading-l" mt="none" mb="none">We are experiencing a problem</goab-text>
<goab-text size="body-m" mt="none" mb="none">
We cannot load this page right now. Please try again in a few minutes. We apologize for the inconvenience.
</goab-text>
</goab-block>
<goab-button type="primary" size="compact" (onClick)="goHome()">Go to home page</goab-button>
</goab-block>
</div>
</goab-page-block><goa-page-block>
<div style="text-align: center;">
<goa-block direction="column" alignment="center" gap="xl" width="100%" mt="3xl" mb="3xl">
<goa-block direction="column" alignment="center" gap="m" width="100%">
<div
style="display: flex; align-items: center; justify-content: center; width: 7.5rem; height: 7.5rem; border-radius: 50%; background-color: var(--goa-color-greyscale-100);"
>
<goa-icon role="presentation" type="warning" size="xlarge" style="transform: scale(1.35);"></goa-icon>
</div>
<goa-text size="body-m" color="secondary" mt="none" mb="none">Error 500</goa-text>
<div
aria-hidden="true"
style="width: 6.875rem; height: 0.5rem; background-color: var(--goa-color-info-default);"
></div>
</goa-block>
<goa-block direction="column" alignment="center" gap="l" width="100%">
<goa-text as="h1" size="heading-l" mt="none" mb="none">We are experiencing a problem</goa-text>
<goa-text size="body-m" mt="none" mb="none">
We cannot load this page right now. Please try again in a few minutes. We apologize for the inconvenience.
</goa-text>
</goa-block>
<goa-button version="2" type="primary" size="compact" onclick="window.location.href='/'">Go to home page</goa-button>
</goa-block>
</div>
</goa-page-block>Page not found (404)
.error-page-content {
text-align: center;
}
.error-page-icon {
display: flex;
align-items: center;
justify-content: center;
width: 7.5rem;
height: 7.5rem;
border-radius: 50%;
background-color: var(--goa-color-greyscale-100);
}
/* Icon scaled beyond xlarge (2.5rem cap) to match the page-scale visual weight. */
/* Tracked in icon-sizes-above-xlarge gap ticket. */
.error-page-icon goa-icon,
.error-page-icon goab-icon {
transform: scale(1.35);
}
.error-page-underline {
width: 6.875rem;
height: var(--goa-space-xs);
background-color: var(--goa-color-info-default);
}<GoabPageBlock>
<div className="error-page-content">
<GoabBlock
direction="column"
alignment="center"
gap="xl"
width="100%"
mt="3xl"
mb="3xl"
>
<GoabBlock direction="column" alignment="center" gap="m" width="100%">
<div className="error-page-icon">
<GoabIcon role="presentation" type="warning" size="xlarge" />
</div>
<GoabText size="body-m" color="secondary" mt="none" mb="none">
Error 404
</GoabText>
<div className="error-page-underline" aria-hidden="true" />
</GoabBlock>
<GoabBlock direction="column" alignment="center" gap="l" width="100%">
<GoabText tag="h1" size="heading-l" mt="none" mb="none">
Page not found
</GoabText>
<GoabText size="body-m" mt="none" mb="none">
The page you're looking for doesn't exist or has been moved.
</GoabText>
</GoabBlock>
<GoabButton type="primary" size="compact" onClick={() => (window.location.href = "/")}>
Go to home page
</GoabButton>
</GoabBlock>
</div>
</GoabPageBlock>goHome() {
window.location.href = "/";
}<goab-page-block>
<div class="error-page-content">
<goab-block direction="column" alignment="center" gap="xl" width="100%" mt="3xl" mb="3xl">
<goab-block direction="column" alignment="center" gap="m" width="100%">
<div class="error-page-icon">
<goab-icon role="presentation" type="warning" size="xlarge"></goab-icon>
</div>
<goab-text size="body-m" color="secondary" mt="none" mb="none">Error 404</goab-text>
<div class="error-page-underline" aria-hidden="true"></div>
</goab-block>
<goab-block direction="column" alignment="center" gap="l" width="100%">
<goab-text tag="h1" size="heading-l" mt="none" mb="none">Page not found</goab-text>
<goab-text size="body-m" mt="none" mb="none">The page you're looking for doesn't exist or has been moved.</goab-text>
</goab-block>
<goab-button type="primary" size="compact" (onClick)="goHome()">Go to home page</goab-button>
</goab-block>
</div>
</goab-page-block><goa-page-block>
<div style="text-align: center;">
<goa-block direction="column" alignment="center" gap="xl" width="100%" mt="3xl" mb="3xl">
<goa-block direction="column" alignment="center" gap="m" width="100%">
<div
style="display: flex; align-items: center; justify-content: center; width: 7.5rem; height: 7.5rem; border-radius: 50%; background-color: var(--goa-color-greyscale-100);"
>
<goa-icon role="presentation" type="warning" size="xlarge" style="transform: scale(1.35);"></goa-icon>
</div>
<goa-text size="body-m" color="secondary" mt="none" mb="none">Error 404</goa-text>
<div
aria-hidden="true"
style="width: 6.875rem; height: 0.5rem; background-color: var(--goa-color-info-default);"
></div>
</goa-block>
<goa-block direction="column" alignment="center" gap="l" width="100%">
<goa-text as="h1" size="heading-l" mt="none" mb="none">Page not found</goa-text>
<goa-text size="body-m" mt="none" mb="none">The page you're looking for doesn't exist or has been moved.</goa-text>
</goa-block>
<goa-button version="2" type="primary" size="compact" onclick="window.location.href='/'">Go to home page</goa-button>
</goa-block>
</div>
</goa-page-block>Button with Icon
<GoabButtonGroup alignment="start">
<GoabButton leadingIcon="arrow-back">Go back</GoabButton>
<GoabButton trailingIcon="arrow-forward">Continue</GoabButton>
<GoabButton type="secondary" leadingIcon="add">
Add item
</GoabButton>
</GoabButtonGroup><goab-button-group alignment="start">
<goab-button leadingIcon="arrow-back">Go back</goab-button>
<goab-button trailingIcon="arrow-forward">Continue</goab-button>
<goab-button type="secondary" leadingIcon="add">Add item</goab-button>
</goab-button-group><goa-button-group alignment="start">
<goa-button version="2" leadingicon="arrow-back">Go back</goa-button>
<goa-button version="2" trailingicon="arrow-forward">Continue</goa-button>
<goa-button version="2" type="secondary" leadingicon="add">Add item</goa-button>
</goa-button-group>Screen Readers
Icon-only interactive elements must have an accessible label so screen reader users understand their purpose.
For IconButton: The ariaLabel prop is required.
// Good - describes the action
<GoabIconButton icon="trash" ariaLabel="Delete item" />
// Bad - no label for screen readers
<GoabIconButton icon="trash" />
For Badge with icon only: Provide ariaLabel when there’s no visible text.
<GoabBadge icon="warning" ariaLabel="Warning" type="important" />
For Icon: Use ariaLabel when the icon conveys meaning, not just decoration.
The label should describe:
- What action happens (for buttons): “Delete”, “Edit”, “Close”
- What the icon represents (for informational icons): “Warning”, “Success”
Don't
Don't use icon-only elements without an accessible label