@project44-manifest/react
Version:
Manifest Design System react components
48 lines (45 loc) • 1.07 kB
text/typescript
import { styled } from '@project44-manifest/react-styles';
export const StyledFlex = styled('div', {
boxSizing: 'border-box',
display: 'flex',
variants: {
align: {
baseline: { alignItems: 'baseline' },
center: { alignItems: 'center' },
end: { alignItems: 'flex-end' },
start: { alignItems: 'flex-start' },
},
gap: {
large: {
gap: '$large',
},
medium: {
gap: '$medium',
},
small: {
gap: '$small',
},
'x-large': {
gap: '$x-large',
},
'x-small': {
gap: '$x-small',
},
},
justify: {
around: { justifyContent: 'space-around' },
between: { justifyContent: 'space-between' },
center: { justifyContent: 'center' },
end: { justifyContent: 'flex-end' },
start: { justifyContent: 'flex-start' },
},
orientation: {
horizontal: { flexDirection: 'row' },
vertical: { flexDirection: 'column' },
},
wrap: {
false: {},
true: { flexWrap: 'wrap' },
},
},
});