import type { Meta, StoryFn } from '@storybook/react'; import React, { FC, PropsWithChildren } from 'react'; import { PageCursor } from '.'; type TComponent = typeof PageCursor.Provider; const meta: Meta = { title: 'Cursor/PageCursor', component: PageCursor.Provider, tags: ['autodocs'], args: { cursors: [], width: 100, height: 100, }, }; export default meta; const StyledCursorBlock: FC = ({ children }) => (
{children}
); const Template: StoryFn = ({ children, cursors, ...props }) => ( first cursor , second cursor , inner cursor , ]} >
First cursor area


{children} ); export const WithDefault = Template.bind({}); WithDefault.args = { cursors: [ default cursor , ], }; export const WithoutDefault = Template.bind({}); WithoutDefault.args = {};