import { Tile, OptionTitle, Box } from '@rocket.chat/fuselage'; import type { StoryObj, Meta, StoryFn } from '@storybook/react'; import ListItem from './Sidebar/ListItem'; export default { component: Tile, parameters: { docs: { description: { component: '`ListItem` can be used on DropDown lists, to render an item with icon and text.', }, }, }, } satisfies Meta; export const ListWithIcon: StoryFn = () => { return ( Title ); }; export const NoIcon: StoryFn = () => { return ( Title ); }; export const MixedWithGap: StoryObj = { render: () => { return ( Title ); }, parameters: { docs: { description: { story: " When using `ListItem`, you can also use the `gap` prop to add spacing to the left. If the list is mixed with items **with and without** icons, it's recommended to add the gap.", }, }, }, }; export const MixedWithoutGap: StoryObj = { render: () => { return ( Title ); }, parameters: { docs: { description: { story: 'Not recommended. Prefer adding the `gap` prop to the items without icons.', }, }, }, };