import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import { Skeleton } from '.'; // Skeleton is a plain .jsx component with defaultProps instead of inline // destructuring defaults, so TS can't infer its props as optional on its own. const TypedSkeleton = Skeleton as unknown as React.ComponentType< { className?: string; as?: React.ElementType; block?: boolean; } & React.HTMLAttributes >; const meta = { title: 'UI/Skeleton', component: TypedSkeleton, } satisfies Meta; export default meta; type Story = StoryObj; export const MultipleTextLines: Story = { render: () => ( <> ), }; export const Block: Story = { render: () => (
), };