import React from 'react' import { List } from '../' import { ICON_ARG, IconName, SPACE, Story } from '../helpers/storybook' export default { title: 'List', component: List, parameters: { cactus: { overrides: { maxWidth: '500px' } } }, } as const export const BasicUsage: Story = ({ marginLeft, ...args }) => ( Non-indented item Non-indented item with children I am indented by 24px I am indented by 48px ) BasicUsage.argTypes = { margin: SPACE, marginLeft: SPACE } export const WithIcons: Story = ({ iconName, ...args }) => ( Non-indented item Non-indented item with children I am indented by 24px I am indented by 48px ) WithIcons.argTypes = { iconName: { ...ICON_ARG, mapping: undefined } } WithIcons.args = { dividers: false, iconName: 'DescriptiveFolder' } export const HeadersAndIcons = (): React.ReactElement => ( File 1 Test File Subset of Files File 2 Another Test File File 3 And Another File 4 And One More ) HeadersAndIcons.parameters = { controls: { disable: true } } export const WithDividers = (): React.ReactElement => ( This is an unordered list This list has dividers Each Item is separated by a line ) WithDividers.parameters = { controls: { disable: true } }