Skip to content

Commit

Permalink
imple Divider Component
Browse files Browse the repository at this point in the history
  • Loading branch information
8845musign committed Jul 11, 2024
1 parent 9f2ef2b commit ce1649c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
9 changes: 0 additions & 9 deletions src/components/Divider/Divider.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,7 @@
background-color: var(--color-border);
}

.divider.grayThick {
height: 2px;
background-color: var(--color-border);
}

.divider.primary {
background-color: var(--color-primary);
}

.divider.primaryThick {
height: 2px;
background-color: var(--color-primary);
}
2 changes: 0 additions & 2 deletions src/components/Divider/Divider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ export const BorderVariants: Story = {
return (
<Stack spacing="md">
<Divider border="gray" />
<Divider border="grayThick" />
<Divider border="primary" />
<Divider border="primaryThick" />
</Stack>
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Divider/Divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Props = {
/**
* ボーダーの種類
*/
border?: 'gray' | 'grayThick' | 'primary' | 'primaryThick';
border?: 'gray' | 'primary';
} & WidthProps &
MarginProps &
AllowedHRAttributes;
Expand Down

0 comments on commit ce1649c

Please sign in to comment.