import _ from 'lodash'; import React from 'react'; import { Story, Meta } from '@storybook/react'; import ExpanderPanel, { IExpanderPanelProps } from './ExpanderPanel'; export default { title: 'Layout/ExpanderPanel', component: ExpanderPanel, parameters: { docs: { description: { component: ExpanderPanel.peek.description, }, }, }, args: ExpanderPanel.defaultProps, } as Meta; /* Basic */ export const Basic: Story = (args) => { return ( Show More {_.times(100, (n) => (
{_.repeat('-', 75 * Math.sin(n / 5))}
))}
); }; /* No Padding */ export const NoPadding: Story = (args) => { return ( Show More {_.times(100, (n) => (
{_.repeat('-', 75 * Math.sin(n / 5))}
))}
); }; /* Basic With On Rest Callback */ export const BasicWithOnRestCallback: Story = (args) => { const onRest = () => { alert('A big ball of wibbly wobbly, timey wimey stuff'); }; return ( Show More {_.times(100, (n) => (
{_.repeat('-', 75 * Math.sin(n / 5))}
))}
); };