Skip to content

Commit b6aac9a

Browse files
author
Lucas Araujo
committed
feat: add height prop to divider
1 parent 96f9b56 commit b6aac9a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/design-system/divider/divider.component.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import type { BoxProps } from '../box';
99

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

12-
export const Divider = (props: Readonly<BoxProps>): JSX.Element => (
13-
<Box {...props} h="$1" className={cx.divider} />
12+
export const Divider = ({
13+
h = '$1',
14+
...props
15+
}: Readonly<BoxProps>): JSX.Element => (
16+
<Box {...props} h={h} className={cx.divider} />
1417
);

0 commit comments

Comments
 (0)