import type { Meta, StoryObj } from '@storybook/nextjs' import { useState } from 'react' import Spinner from '.' const SpinnerPlayground = ({ loading = true, }: { loading?: boolean }) => { const [isLoading, setIsLoading] = useState(loading) return (

Spinner

) } const meta = { title: 'Base/Feedback/Spinner', component: SpinnerPlayground, parameters: { layout: 'centered', docs: { description: { component: 'Minimal spinner powered by Tailwind utilities. Toggle the state to inspect motion-reduced behaviour.', }, }, }, argTypes: { loading: { control: 'boolean' }, }, args: { loading: true, }, tags: ['autodocs'], } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = {}