Skip to main content

Toast

Library
Allium Design Systemweb-only
Repository
github.com/telus/allium-design-system
Package
npmjs.com/package/@telus-uds/ds-allium
Package version
1.14.0
Loading...

Introduction

import { Toast } from '@telus-uds/ds-allium'

Use Toast to display important content and focus attention.

Guidance

  • Select the size that best fits your context
    • Default (medium text)
    • Small (small, compact text)
  • Use textAlign to set alignment explicitly
    • By default, text is left-aligned
    • When roundedCorners is set, text is center-aligned
  • Use roundedCorners when showing Callout within content bounds
    • Don’t use roundedCorners when showing Callout full-width, edge-to-edge
  • Use icon to show Icon

Accessibility

If your toast is dynamically triggered, ensure that the content is appropriately marked up such that it will be announced by assistive technologies. For example use an aria-live region.

Loading...

Platform considerations

This component is currently only supported on web.

Props

NameTypeDefaultDescription
copy*string
headlinestring
link{ href: string, text: string, LinkRouter, linkRouterProps }
toastbool

Figma

Variants

Headline

Loading...
Loading...
Loading...

Feedback