Skip to content

Commit 87e0c69

Browse files
author
Nikolai Lopin
committed
docs: migrate Skeleton docs to csf3
1 parent eeec04e commit 87e0c69

File tree

3 files changed

+67
-60
lines changed

3 files changed

+67
-60
lines changed

src/components/Skeleton/docs/Skeleton.stories.mdx

Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { Meta, StoryObj } from '@storybook/react';
2+
import { Skeleton } from '../Skeleton';
3+
4+
const meta: Meta = {
5+
title: 'Components/Skeleton',
6+
component: Skeleton,
7+
argTypes: {
8+
animated: {
9+
options: [true, false],
10+
defaultValue: false,
11+
control: 'radio'
12+
},
13+
ref: {
14+
table: {
15+
disable: true
16+
}
17+
},
18+
as: {
19+
table: {
20+
disable: true
21+
}
22+
},
23+
forwardedAs: {
24+
table: {
25+
disable: true
26+
}
27+
},
28+
theme: {
29+
table: {
30+
disable: true
31+
}
32+
}
33+
}
34+
};
35+
36+
export default meta;
37+
38+
type Story = StoryObj<typeof Skeleton>;
39+
40+
export const Default: Story = {};
41+
42+
export const WithAnimation: Story = {
43+
args: {
44+
animated: true
45+
}
46+
};
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { Primary, Stories, ArgTypes, Meta } from '@storybook/blocks';
2+
3+
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks';
4+
import * as SkeletonStories from './Skeleton.stories';
5+
6+
<Meta of={SkeletonStories} />
7+
8+
# Skeleton
9+
10+
Provide a placeholder while you wait for content to load, or to visualise content that doesn't exist yet.
11+
Skeleton fills the container it's in, and can be animated.
12+
13+
<Primary />
14+
15+
## Properties
16+
17+
<ArgTypes of={SkeletonStories} />
18+
19+
<StyledSystemLinks component="Skeleton" supportedProps={['layout', 'margin', 'borderRadius']} />
20+
21+
<Stories includePrimary={false} />

0 commit comments

Comments
 (0)