import SimpleAlert, { SimpleAlertProps } from '@/components/SimpleAlert'; import { useArgs } from '@storybook/preview-api'; import { Meta, StoryObj } from '@storybook/react'; const meta: Meta = { title: 'Alert', component: SimpleAlert, tags: ['autodocs'], }; export default meta; type Story = StoryObj; export const Default: Story = { args: { label: 'Successfully Created', type: 'success', color: 'green', }, render: () => { const [args] = useArgs(); return ; }, }; export const WithDescription: Story = { args: { label: 'Something is wrong!', type: 'info', color: 'yellow', }, render: () => { const [args] = useArgs(); return (
We are not able to process your request now. You can learn more about this.
); }, };