box-ui-elements
Version:
Box UI Elements
41 lines • 3.35 kB
JavaScript
import * as React from 'react';
import Button from '../button/Button';
import Collapsible from './Collapsible';
import notes from './Collapsible.stories.md';
export const withBorder = () => {
const onOpen = arg => {
// eslint-disable-next-line no-console
console.log('opened', arg);
};
const onClose = arg => {
// eslint-disable-next-line no-console
console.log('closed', arg);
};
return /*#__PURE__*/React.createElement(Collapsible, {
isOpen: true,
onOpen: onOpen,
onClose: onClose,
isBordered: true,
title: "Collapsible card title"
}, /*#__PURE__*/React.createElement("div", null, "This is content of a collapsible component"), /*#__PURE__*/React.createElement("div", null, "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\u2019s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."));
};
export const withoutBorder = () => /*#__PURE__*/React.createElement(Collapsible, {
isOpen: true,
title: "Collapsible card title"
}, /*#__PURE__*/React.createElement("div", null, "This is content of a collapsible component"), /*#__PURE__*/React.createElement("div", null, "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\u2019s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."));
export const withButtonInHeader = () => /*#__PURE__*/React.createElement(Collapsible, {
headerActionItems: /*#__PURE__*/React.createElement(Button, {
className: "collapsible-card-action-items"
}, "Click Here"),
isBordered: true,
isOpen: true,
title: "Collapsible card title"
}, /*#__PURE__*/React.createElement("div", null, "This is content of a collapsible component"), /*#__PURE__*/React.createElement("div", null, "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\u2019s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."));
export default {
title: 'Components/Collapsible',
component: Collapsible,
parameters: {
notes
}
};
//# sourceMappingURL=Collapsible.stories.js.map