import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { StoryContainer } from './helpers'; import { Panel, Action } from '../src'; storiesOf('Panel', module) .addDecorator((getStory) => ( { getStory() } )) .addWithInfo('with a title', () => ( This is a panel with a title )) .addWithInfo('highlighted with a title', () => ( This is a highlighted panel with a title )) .addWithInfo('with multiple sections', () => ( This is a panel with sections This is a panel with sections This is a panel with sections )) .addWithInfo('with actions', () => { const actions = [ { content: 'Edit', onClick: action('Edit Clicked') }, { content: 'Delete', onClick: action('Delete Clicked') }, ]; const sectionActions = [ { content: 'View Details', onClick: action('Details Clicked') } ]; return (
More Actions
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet perspiciatis harum reprehenderit, odio temporibus culpa beatae iure!
); });