[9/n][Storybook] InlineNotification update argTypes and use theme variants (#46)
This commit is contained in:
commit
294675c276
@ -1 +1,2 @@
|
||||
export * from './InlineNotification';
|
||||
export * from './InlineNotification.theme';
|
||||
|
@ -1,16 +1,19 @@
|
||||
import { StoryObj, Meta } from '@storybook/react';
|
||||
|
||||
import {
|
||||
InlineNotification,
|
||||
InlineNotificationTheme,
|
||||
} from 'components/shared/InlineNotification';
|
||||
import { PlusIcon } from 'components/shared/CustomIcon';
|
||||
|
||||
import { InlineNotification } from 'components/shared/InlineNotification';
|
||||
|
||||
const inlineNotificationVariants = [
|
||||
const inlineNotificationVariants: InlineNotificationTheme['variant'][] = [
|
||||
'info',
|
||||
'danger',
|
||||
'warning',
|
||||
'success',
|
||||
'generic',
|
||||
];
|
||||
const inlineNotificationSizes = ['md', 'sm'];
|
||||
const inlineNotificationSizes: InlineNotificationTheme['size'][] = ['sm', 'md'];
|
||||
|
||||
const meta: Meta<typeof InlineNotification> = {
|
||||
title: 'Components/InlineNotification',
|
||||
@ -34,6 +37,9 @@ const meta: Meta<typeof InlineNotification> = {
|
||||
control: 'select',
|
||||
options: inlineNotificationSizes,
|
||||
},
|
||||
hasDescription: {
|
||||
control: 'boolean',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user