36 lines
834 B
TypeScript
36 lines
834 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
|
|
import { Skeleton } from '@konobangu/design-system/components/ui/skeleton';
|
|
|
|
/**
|
|
* Use to show a placeholder while content is loading.
|
|
*/
|
|
const meta = {
|
|
title: 'ui/Skeleton',
|
|
component: Skeleton,
|
|
tags: ['autodocs'],
|
|
argTypes: {},
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
} satisfies Meta<typeof Skeleton>;
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof Skeleton>;
|
|
|
|
/**
|
|
* The default form of the skeleton.
|
|
*/
|
|
export const Default: Story = {
|
|
render: (args) => (
|
|
<div className="flex items-center space-x-4">
|
|
<Skeleton {...args} className="h-12 w-12 rounded-full" />
|
|
<div className="space-y-2">
|
|
<Skeleton {...args} className="h-4 w-[250px]" />
|
|
<Skeleton {...args} className="h-4 w-[200px]" />
|
|
</div>
|
|
</div>
|
|
),
|
|
};
|