UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

33 lines 1 kB
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { EXPANDABLE_SECTION } from '../../../utilities/constants'; import ControlledExample from '../__examples__/controlled'; import DefaultExample from '../__examples__/default'; import NonCollapsibleExample from '../__examples__/non-collapsible'; storiesOf(EXPANDABLE_SECTION, module).addDecorator(function (getStory) { return ( /*#__PURE__*/ React.createElement("div", { className: "slds-p-around_medium" }, getStory()) ); }).add('Default', function () { return ( /*#__PURE__*/ React.createElement(DefaultExample, null) ); }).add('Controlled', function () { return ( /*#__PURE__*/ React.createElement(ControlledExample, { action: action }) ); }).add('Non-collapsible', function () { return ( /*#__PURE__*/ React.createElement(NonCollapsibleExample, null) ); }); //# sourceMappingURL=storybook-stories.js.map