Skip to content

Commit

Permalink
feat: add fullHeight and fullWidth props
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoborges committed Dec 13, 2023
1 parent 5c6165f commit 5cdd00e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Flex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export type FlexProps = React.PropsWithChildren<{
debugColor?: string;
end?: boolean;
full?: boolean;
fullHeight?: boolean;
fullWidth?: boolean;
gap?: number;
gapless?: boolean;
horizontal?: boolean;
Expand Down Expand Up @@ -92,8 +94,15 @@ const getStyles = (p: FlexProps) => {
}),
// overrides
...(p.full && {
height: '100%',
width: '100%',
}),
...(p.fullWidth && {
width: '100%',
}),
...(p.fullHeight && {
height: '100%',
}),
...(p.size && {
flex: p.size,
}),
Expand Down

0 comments on commit 5cdd00e

Please sign in to comment.