Skip to content

Commit

Permalink
feat: skeleton, add badge variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Seedy authored Dec 15, 2021
1 parent c3c8f38 commit eeca841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/Skeleton/Skeleton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export const Typographies: ComponentStory<typeof SkeletonForStory> = () => (

export const Button: ComponentStory<typeof SkeletonForStory> = () => <Skeleton variant="button" />;

export const Badge: ComponentStory<typeof SkeletonForStory> = () => <Skeleton variant="badge" />

export const Customs: ComponentStory<typeof SkeletonForStory> = () => (
<Flex direction="column" gap={3}>
<Skeleton variant="title" css={{ width: '30%' }} />
Expand Down
4 changes: 4 additions & 0 deletions components/Skeleton/Skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export const Skeleton = styled('div', {
heading: {
height: '$3',
},
badge: {
borderRadius: '$pill',
height: '$4',
},
button: {
borderRadius: '$1',
height: '32px',
Expand Down

0 comments on commit eeca841

Please sign in to comment.