Skip to content

Commit

Permalink
add gap attribute to box component (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-bear authored Sep 18, 2024
1 parent de52480 commit 3612a9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/theme/theme.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export const createSpacingStyles = (
mx: 'marginHorizontal',
my: 'marginVertical',
ms: 'marginStart',
gap: 'gap',
gapX: 'rowGap',
gapY: 'columnGap',
};

const computedStyle: any = {};
Expand Down
3 changes: 3 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ export interface SpacingPropsType {
px?: ResponsiveValue<string | number>;
py?: ResponsiveValue<string | number>;
ps?: ResponsiveValue<string | number>;
gap?: ResponsiveValue<string | number>;
gapX?: ResponsiveValue<string | number>;
gapY?: ResponsiveValue<string | number>;
}

export const stackSpacingProps = ['spacing'] as const;
Expand Down

0 comments on commit 3612a9d

Please sign in to comment.