import type { Meta, StoryObj } from '@storybook/react-vite'; import BackToTop from './BackToTop'; const meta = { title: 'Components/BackToTop', component: BackToTop, argTypes: { href: { control: { type: 'text' }, description: 'URL fragment to scroll to', table: { type: { summary: 'string' } } } }, decorators: [ (Story) => (

Scroll down to see 👇

), ] } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { href: undefined, } };