Skip to content

Commit

Permalink
feat: add height prop to divider
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Araujo committed Jul 2, 2024
1 parent 96f9b56 commit b6aac9a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/design-system/divider/divider.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import type { BoxProps } from '../box';

export type Props = PropsWithChildren<Readonly<Omit<BoxProps, 'className'>>>;

export const Divider = (props: Readonly<BoxProps>): JSX.Element => (
<Box {...props} h="$1" className={cx.divider} />
export const Divider = ({
h = '$1',
...props
}: Readonly<BoxProps>): JSX.Element => (
<Box {...props} h={h} className={cx.divider} />
);

0 comments on commit b6aac9a

Please sign in to comment.