@music-loopy/loops
Version:
A React component library for Music Loopy Applications and websites
67 lines (66 loc) • 2.06 kB
JavaScript
;
exports.__esModule = true;
exports["default"] = exports.SmallCard = exports.MediumCard = exports.LargeCard = exports.FullWidthCard = exports.CardWithoutHeader = void 0;
var _test = require("@storybook/test");
var _index = require("./index");
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
var _default = exports["default"] = {
title: 'Components/Card',
component: _index.Card,
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
layout: 'centered'
},
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
// More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {
size: {
control: {
type: 'select',
options: ['small', 'medium', 'large']
}
},
fullWidth: {
control: 'boolean'
}
},
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
args: {
onClick: (0, _test.fn)()
}
}; // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
var SmallCard = exports.SmallCard = {
args: {
size: 'small',
header: 'Small Card Header',
children: 'This is a small card.'
}
};
var MediumCard = exports.MediumCard = {
args: {
size: 'medium',
header: 'Medium Card Header',
children: 'This is a medium card.'
}
};
var LargeCard = exports.LargeCard = {
args: {
size: 'large',
header: 'Large Card Header',
children: 'This is a large card.'
}
};
var FullWidthCard = exports.FullWidthCard = {
args: {
fullWidth: true,
header: 'Full Width Card Header',
children: 'This card takes the full width of its container.'
}
};
var CardWithoutHeader = exports.CardWithoutHeader = {
args: {
size: 'medium',
children: 'This card has no header.'
}
};