Skip to main content
Version: Next

List

The List component from Superset's UI library.

Live Example

Loading component...

Try It

Edit the code below to experiment with the component:

Live Editor
function Demo() {
  const data = ['Dashboard Analytics', 'User Management', 'Data Sources'];
  return (
    <List
      bordered
      dataSource={data}
      renderItem={(item) => <List.Item>{item}</List.Item>}
    />
  );
}
Result
Loading...

Props

PropTypeDefaultDescription
borderedbooleanfalseWhether to show a border around the list.
splitbooleantrueWhether to show a divider between items.
sizestring"default"Size of the list.
loadingbooleanfalseWhether to show a loading indicator.
dataSourceany["Dashboard Analytics","User Management","Data Sources"]-

Import

import { List } from '@superset/components';

Improve this page

This documentation is auto-generated from the component's Storybook story. Help improve it by editing the story file.