[9/n][Storybook] InlineNotification update argTypes and use theme variants
This commit is contained in:
parent
907b5ee02d
commit
2e0b228aa5
@ -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