import Button from 'sentry/components/button'; import Collapsible from 'sentry/components/collapsible'; import {tn} from 'sentry/locale'; export default { title: 'Utilities/Hidden Content/Collapsible', component: Collapsible, }; export const Default = ({...args}) => ( {[1, 2, 3, 4, 5, 6, 7].map(item => (
Item {item}
))}
); export const CustomButtons = ({...args}) => { return ( } expandButton={({onExpand, numberOfCollapsedItems}) => ( )} > {[1, 2, 3, 4, 5, 6, 7].map(item => (
Item {item}
))}
); };