Skip to content

Commit

Permalink
make display responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
robphoenix committed Aug 25, 2023
1 parent 3256ba3 commit d342c1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-doors-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@utilitywarehouse/web-ui': patch
---

Make Flex display responsive
4 changes: 2 additions & 2 deletions packages/web-ui/src/Flex/Flex.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { BoxProps as MuiBoxProps, createBox } from '@mui/system';
import { BoxProps as MuiBoxProps, createBox, ResponsiveStyleValue } from '@mui/system';
import { PropsWithChildren } from 'react';
import { theme, type Theme } from '../theme';
import { globalPrefix } from '../utils';

const displayName = 'Flex';

export interface FlexProps extends Omit<MuiBoxProps, 'display'> {
display?: 'flex' | 'inline-flex';
display?: ResponsiveStyleValue<'none' | 'flex' | 'inline-flex'>;
direction?: MuiBoxProps['flexDirection'];
align?: MuiBoxProps['alignItems'];
justify?: MuiBoxProps['justifyContent'];
Expand Down

0 comments on commit d342c1d

Please sign in to comment.