-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renaming Placeholder component to Skeleton
- Loading branch information
1 parent
0de2f85
commit e154731
Showing
7 changed files
with
36 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { StoryObj, Meta } from '@storybook/react' | ||
|
||
import { Box } from '~/components/Box' | ||
|
||
import { Skeleton } from './Skeleton' | ||
|
||
export default { | ||
title: 'Components/Skeleton', | ||
component: Skeleton, | ||
} as Meta<typeof Skeleton> | ||
|
||
type Story = StoryObj<typeof Skeleton> | ||
|
||
export const Default: Story = { | ||
render: () => ( | ||
<Box gap="2"> | ||
<Skeleton gap="2" padding="2"> | ||
<Skeleton style={{ width: 72, height: 72 }} /> | ||
<Box flexDirection="column" gap="2"> | ||
<Skeleton size="md" /> | ||
<Skeleton size="sm" /> | ||
<Skeleton size="sm" /> | ||
</Box> | ||
</Skeleton> | ||
</Box> | ||
), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Skeleton, Skeleton as Placeholder /* deprecated */ } from './Skeleton' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters