summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/notice.stories.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/layout/notice.stories.tsx')
-rw-r--r--src/components/atoms/layout/notice.stories.tsx40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/components/atoms/layout/notice.stories.tsx b/src/components/atoms/layout/notice.stories.tsx
new file mode 100644
index 0000000..0555a2e
--- /dev/null
+++ b/src/components/atoms/layout/notice.stories.tsx
@@ -0,0 +1,40 @@
+import { ComponentMeta, ComponentStory } from '@storybook/react';
+import NoticeComponent from './notice';
+
+export default {
+ title: 'Atoms/Layout',
+ component: NoticeComponent,
+ argTypes: {
+ kind: {
+ control: {
+ type: 'select',
+ },
+ description: 'The notice kind.',
+ options: ['error', 'info', 'success', 'warning'],
+ type: {
+ name: 'string',
+ required: true,
+ },
+ },
+ message: {
+ control: {
+ type: 'text',
+ },
+ description: 'The notice body.',
+ type: {
+ name: 'string',
+ required: true,
+ },
+ },
+ },
+} as ComponentMeta<typeof NoticeComponent>;
+
+const Template: ComponentStory<typeof NoticeComponent> = (args) => (
+ <NoticeComponent {...args} />
+);
+
+export const Notice = Template.bind({});
+Notice.args = {
+ kind: 'info',
+ message: 'Nisi provident sapiente.',
+};