diff --git a/packages/react/src/components/ContainedList/ContainedList.stories.js b/packages/react/src/components/ContainedList/ContainedList.stories.js index abf0236b603e..f3a07df7c590 100644 --- a/packages/react/src/components/ContainedList/ContainedList.stories.js +++ b/packages/react/src/components/ContainedList/ContainedList.stories.js @@ -9,17 +9,24 @@ import React from 'react'; import { action } from '@storybook/addon-actions'; import { + Add, Apple, Fish, Strawberry, SubtractAlt, Wheat, } from '@carbon/icons-react'; + +import { Layer } from '../Layer'; import { VStack } from '../Stack'; import Button from '../Button'; import ExpandableSearch from '../ExpandableSearch'; -import { Layer } from '../Layer'; +import OverflowMenu from '../OverflowMenu'; +import OverflowMenuItem from '../OverflowMenuItem'; import Tag from '../Tag'; + +import { usePrefix } from '../../internal/usePrefix'; + import mdx from './ContainedList.mdx'; import ContainedList, { ContainedListItem } from '.'; @@ -158,62 +165,126 @@ export const WithInteractiveItemsAndActions = () => { ); }; -export const WithListTitleDecorators = () => { - return ( - - List title - 4 - - } - kind="on-page"> - List item - List item - List item - List item - - ); -}; +export const WithListTitleDecorators = () => ( + + List title + 4 + + } + kind="on-page"> + List item + List item + List item + List item + +); -export const WithIcons = () => { - return ( +export const WithIcons = () => ( + + List item + List item + List item + List item + +); + +export const WithLayer = () => ( + - List item - List item - List item - List item + List item + List item - ); -}; - -export const WithLayer = () => { - return ( - - - List item - List item - - - + + + + List item + List item + + List item List item - - - List item - List item - - - - - + + + + +); + +export const UsageExamples = () => { + const prefix = usePrefix(); + + return ( + <> + + }> + {[...Array(3)].map((_, i) => ( + + + + + + }> + List item + + ))} + + + }> + {[...Array(3)].map((_, i) => ( + + List item +
+ + Description text + +
+ ))} +
+ + {[...Array(3)].map((_, i) => ( + +
+ List item + List item details + List item details +
+
+ ))} +
+ ); };