Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
  • Data display
    • Accordion
    • Accordion
    • Avatar
    • Avatar
    • Blobby
    • Card
    • Card
    • Collapsible
    • Divider
    • Emoji
    • Emoji
    • Gradient
    • Gradient
    • Icon
    • Image
    • ListItem
    • ListItem
    • ResponsiveImage
    • SemanticList
    • Tag
    • Timeline
  • Typography
  • Accessibility
  • Contrib
  • Deprecated
  • Data display
  • ListItem

ListItem (Web)

One row in a list, with a title, a subtitle and an optional decoration. Use for a tappable list of items.

Health
Component health
Source
View on Github
Design
View Figma
Storybook
View in Storybook
Playground
No Example
Accessibility

partially-compliant

Platform
Web
Accessibility issues
This component does not support being used as a link. If you need to use it as a link, you can wrap it in a <A>. Do not use the `onClick` prop when using it with a link.
  • Overview
  • Props
  • Figma
children

Playground​

Loading...

ListItem props

NameTypeDefault ValueDescriptionUsage count
buttonType"button""submit""reset"undefinedundefinedThe type of button to use for the underlying HTML button. TODO: there are very few cases where "submit" is the right choice but it's the HTML default when we're rendering inside a <form>. We should switch to "button" by default after checking it doesn't break anything.
childrenReactNodeEnables right side customization
decorPropsDecorPropsundefined
errorsReactNode[]undefined
hideCaretbooleanundefinedWhen `onClick` is filled, caret is shown by default. You can disable it with this prop.
onClick
2 possibilitiesundefined(event: MouseEvent<Element, MouseEvent>) => void
styleCSSPropertiesundefined
subtitleReactNode
titleReactNode
variantListItemVariantundefined

Deprecated props

NameTypeDefault ValueDescriptionUsage count
optionPropsListItemOptionPropsundefined use children instead
Edit this page
Previous
ListItem
Next
ResponsiveImage
  • Playground