add dive, fix eslint
This commit is contained in:
parent
0a4cba33b1
commit
ce8920a6e7
3 changed files with 21 additions and 1 deletions
1
.eslintignore
Normal file
1
.eslintignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
node_modules
|
||||
|
|
@ -95,5 +95,6 @@
|
|||
"no-bitwise": "off",
|
||||
"unicorn/filename-case": "off",
|
||||
"max-depth": "off"
|
||||
}
|
||||
},
|
||||
"root": true
|
||||
}
|
||||
|
|
|
|||
18
src/react/Dive.stories.tsx
Normal file
18
src/react/Dive.stories.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
import DiveTransition from './DiveTransition'
|
||||
|
||||
const meta: Meta<{ open }> = {
|
||||
component: DiveTransition as any,
|
||||
render ({ open }) {
|
||||
return <DiveTransition open={open}>hello</DiveTransition>
|
||||
},
|
||||
}
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<{ open }>;
|
||||
|
||||
export const Primary: Story = {
|
||||
args: {
|
||||
open: false,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue