feat(web): shared loading skeleton recipes (List/Form/AppShell) + common.loading (#53)

This commit is contained in:
2026-06-08 06:46:24 +02:00
parent 6bce1e6782
commit d0da77a004
4 changed files with 88 additions and 2 deletions
@@ -0,0 +1,23 @@
import type { Meta, StoryObj } from '@storybook/react-vite'
import { expect } from 'storybook/test'
import { AppShellSkeleton, FormSkeleton, ListSkeleton } from './skeletons'
const meta = {
component: ListSkeleton,
tags: ['ai-generated'],
} satisfies Meta<typeof ListSkeleton>
export default meta
type Story = StoryObj<typeof meta>
export const List: Story = {
render: () => <ListSkeleton rows={4} />,
play: async ({ canvas }) => {
await expect(canvas.getByRole('status')).toBeInTheDocument()
},
}
export const Form: Story = { render: () => <FormSkeleton /> }
export const AppShellLoading: Story = { render: () => <AppShellSkeleton /> }