import type { Meta, StoryObj } from '@storybook/react'; import { LoadingState, LoadingStateWrapper } from './LoadingState'; import { Card } from './card'; const meta = { title: 'UI/LoadingState', component: LoadingState, tags: ['autodocs'], argTypes: { variant: { control: 'select', options: ['spinner', 'inline', 'skeleton', 'minimal'], }, size: { control: 'select', options: ['sm', 'md', 'lg'], }, isLoading: { control: 'boolean' }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { isLoading: true, text: 'Loading data...', }, }; export const Inline: Story = { args: { isLoading: true, variant: 'inline', text: 'Saving changes...', }, }; export const Skeleton: Story = { args: { isLoading: true, variant: 'skeleton', }, }; export const WrapperExample: Story = { render: (args) => (

Content Loaded

This text is hidden while loading.

), };