We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c6165f commit 5cdd00eCopy full SHA for 5cdd00e
1 file changed
src/Flex.tsx
@@ -11,6 +11,8 @@ export type FlexProps = React.PropsWithChildren<{
11
debugColor?: string;
12
end?: boolean;
13
full?: boolean;
14
+ fullHeight?: boolean;
15
+ fullWidth?: boolean;
16
gap?: number;
17
gapless?: boolean;
18
horizontal?: boolean;
@@ -92,8 +94,15 @@ const getStyles = (p: FlexProps) => {
92
94
}),
93
95
// overrides
96
...(p.full && {
97
+ height: '100%',
98
width: '100%',
99
100
+ ...(p.fullWidth && {
101
+ width: '100%',
102
+ }),
103
+ ...(p.fullHeight && {
104
105
106
...(p.size && {
107
flex: p.size,
108
0 commit comments