Skip to main content

List

Library
UDS Base
Repository
github.com/telus/universal-design-system
Package
npmjs.com/package/@telus-uds/components-base
Package version
1.6.1
Loading...

Introduction​

import { List } from '@telus-uds/components-base'

List component displays an unordered list.

Guidance​

  • showDivider props display a divider between items
  • List item accepts the following properties:
    • icon an SVG icon
    • iconSize defines the icon size in pixels
    • iconColor for a different color, by default use color defined on palette
    • title prop can be used to display a list item heading above the children
  • List item also accepts "Typography" or any other children components

Accessibility​

List and List.Item adopt the semantics of ul and li respectively.

Props​

NameTypeDefaultDescription
tokenscustomSystem tokens prop, see tokens for more details
variantobjectOfSystem variant prop, see variants for more details
childrencustom
showDividerboolIn case it is not the last item allow display divider