Skip to content

Commit

Permalink
chore: flex props name
Browse files Browse the repository at this point in the history
  • Loading branch information
LYXOfficial committed Oct 6, 2024
1 parent c634970 commit b6e943d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/docs/components/flex/FlexControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export default App;`.trimStart();
align={align}
wrap={wrap}
gap={gap}
minHeight={50}
background="gray"
mih={50}
bg="gray"
>
<Button>Button 1</Button>
<Button>Button 2</Button>
Expand Down
8 changes: 4 additions & 4 deletions packages/components/flex/src/flex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import classes from './flex.module.scss';

export declare interface FlexProps {
children?: React.ReactNode;
minHeight?: number;
background?: string;
mih?: number;
bg?: string;
gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
justify?: 'center' | 'flex-start' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
align?: 'center' | 'flex-end' | 'flex-start';
Expand All @@ -16,8 +16,8 @@ export const Flex = (props: FlexProps) => {
return (
<div
style={{
background: props.background,
minHeight: props.minHeight,
background: props.bg,
minHeight: props.mih,
gap: props.gap ? `var(--spacing-${props.gap})` : null,
justifyContent: props.justify,
alignItems: props.align,
Expand Down

0 comments on commit b6e943d

Please sign in to comment.