add dive, fix eslint

This commit is contained in:
Vitaly Turovsky 2023-10-15 19:43:39 +03:00
commit ce8920a6e7
3 changed files with 21 additions and 1 deletions

1
.eslintignore Normal file
View file

@ -0,0 +1 @@
node_modules

View file

@ -95,5 +95,6 @@
"no-bitwise": "off",
"unicorn/filename-case": "off",
"max-depth": "off"
}
},
"root": true
}

View 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,
},
}