Skip to Content
DocsResourcesShowcase

DataList

Used to display a list of similar data items.

SourceStorybookRecipe
New Users
234
Sales
£12,340
Revenue
3,450

import { DataList } from '@saas-ui/react/data-list'
<DataList>
  <DataList.Item>
    <DataList.Label>Label</DataList.Label>
    <DataList.Value>Value</DataList.Value>
  </DataList.Item>
</DataList>

Use the size prop to change the size of the datalist component.

Name
John Doe
Name
John Doe
Name
John Doe

Use the orientation prop to change the orientation of the datalist component.

New Users
234
Sales
£12,340
Revenue
3,450

Use the divideY prop to add a separator between items.

First Name
Jassie
Last Name
Bhatia
Email
jassie@jassie.dev
Phone
1234567890
Address
1234 Main St, Anytown, USA

PropDefaultType
colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

orientation 'vertical'
'horizontal' | 'vertical'

The orientation of the component

size 'md'
'sm' | 'md' | 'lg'

The size of the component

Previous

Collapsible

Next

Dialog