-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlertView.stories.tsx
More file actions
43 lines (38 loc) · 1 KB
/
AlertView.stories.tsx
File metadata and controls
43 lines (38 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import type { Meta, StoryObj } from '@storybook/react-vite'
import { AlertView } from '.'
const meta = {
title: 'Shared/AlertView',
component: AlertView,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
args: {
title: 'Heads up',
description:
'This is a short description explaining the alert context to the user.',
},
decorators: [
(Story) => (
<div
className="p-10"
style={{
backgroundImage: 'linear-gradient(135deg, #B78C71 0%, #45ABFB 100%)',
width: 400,
}}
>
<Story />
</div>
),
],
} satisfies Meta<typeof AlertView>
export default meta
type Story = StoryObj<typeof meta>
export const Default: Story = {}
export const LongDescription: Story = {
args: {
title: 'Review transaction',
description:
'Please carefully review the transaction details below before confirming. Once submitted, this action cannot be reversed and funds will be sent to the destination address.',
},
}