Skip to content

Commit

Permalink
feat(Box): add 'position' property
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladeeg committed Jun 25, 2024
1 parent 5d58c8e commit 2b27ed0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/layout/Box/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ export interface BoxProps<T extends React.ElementType = 'div'>
React.PropsWithChildren<
Pick<
React.CSSProperties,
'width' | 'height' | 'maxHeight' | 'maxWidth' | 'minHeight' | 'minWidth'
| 'width'
| 'height'
| 'maxHeight'
| 'maxWidth'
| 'minHeight'
| 'minWidth'
| 'position'
>
> {
as?: T;
Expand Down Expand Up @@ -63,6 +69,7 @@ export const Box = React.forwardRef(function Box<T extends React.ElementType = '
minHeight,
maxHeight,
maxWidth,
position,
style: outerStyle,
spacing,
overflow,
Expand All @@ -79,6 +86,7 @@ export const Box = React.forwardRef(function Box<T extends React.ElementType = '
minHeight,
maxHeight,
maxWidth,
position,
...outerStyle,
};

Expand Down

0 comments on commit 2b27ed0

Please sign in to comment.