Skip to content

Commit

Permalink
feat: Divider 컴포넌트 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
nijuy committed Oct 28, 2024
1 parent 4d668ef commit a5bad31
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/components/Divider/Divider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { StyledHr } from './Divider.style';
import { DividerProps } from './Divider.type';

export const Divider = ({ width, thickness }: DividerProps) => {
return <StyledHr $width={width} $thickness={thickness} />;
};
2 changes: 2 additions & 0 deletions src/components/Divider/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { Divider } from './Divider';
export type { DividerProps } from './Divider.type';
5 changes: 4 additions & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ export { TextField } from './TextField';
export type { TextFieldProps } from './TextField';

export { Switch } from './Switch';
export type { SwitchProps } from './Switch';
export type { SwitchProps } from './Switch';

export { Divider } from './Divider';
export type { DividerProps } from './Divider';

0 comments on commit a5bad31

Please sign in to comment.