Skip to content

Commit

Permalink
fix: pass gap
Browse files Browse the repository at this point in the history
  • Loading branch information
wwsun committed Jan 18, 2022
1 parent 84cf23d commit d8ae462
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/flexbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const config: StylePropConfig = {
property: 'rowGap',
scale: 'space',
},
gap: {
property: 'gap',
scale: 'space',
},
// item
flex: true,
flexGrow: true,
Expand Down
1 change: 1 addition & 0 deletions src/types/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export interface FlexboxProps {
flexDirection?: CSS.Property.FlexDirection;
columnGap?: CSS.Property.ColumnGap;
rowGap?: CSS.Property.RowGap;
gap?: CSS.Property.Gap;
// item
flex?: CSS.Property.Flex<Length>;
flexGrow?: CSS.Property.FlexGrow;
Expand Down

0 comments on commit d8ae462

Please sign in to comment.