design-system-simplefi
Version:
Design System for SimpleFi Applications
30 lines • 1.68 kB
JavaScript
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
import React from 'react';
import { action } from '@storybook/addon-actions';
import Collapsible from './Collapsible';
export default {
component: Collapsible,
title: 'components/Collapsible',
};
export var playground = function (args) { return React.createElement(Collapsible, __assign({}, args)); };
playground.parameters = {
chromatic: { disable: true },
};
playground.args = {
title: 'playground',
subject: 'Collapsible',
children: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pharetra magna lectus, a congue ex blandit vel. Donec id mi commodo eros porta tempus',
};
export var DefaultCollapsible = function () { return (React.createElement(Collapsible, { subject: "Website does not implement X-XSS-Protection Best Practices", title: "Resolve or Comment", onOpen: action('onOpen') }, "You have 256 findings related to Website does not implement X-XSS-Protection Best Practices")); };
export var OpenedCollapsible = function () { return (React.createElement(Collapsible, { subject: "Website does not implement X-XSS-Protection Best Practices", title: "Resolve or Comment", defaultIsOpened: true }, "You have 256 findings related to Website does not implement X-XSS-Protection Best Practices")); };
//# sourceMappingURL=Collapsible.stories.js.map