import type { Meta, StoryObj } from '@storybook/react-vite'; import { Spinner } from './spinner'; import { Button } from '../button/button'; const meta = { title: 'Components/Spinner', component: Spinner, parameters: { layout: 'centered', docs: { description: { component: 'Indeterminate loading indicator. Prefer a Skeleton when you know the shape of what is arriving — it communicates more and avoids a layout shift.', }, }, }, tags: ['autodocs'], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = {}; export const Sizes: Story = { render: () => (
), }; /** Inside a button, label the action rather than the spinner. */ export const InButton: Story = { render: () => ( ), };