Skip to content

Commit

Permalink
changing default values for shrink and basis props
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
  • Loading branch information
BigSamu committed Nov 1, 2023
1 parent 9665bba commit b8ec51e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/flex/flex_item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ export const OuiFlexItem: FunctionComponent<
> = ({
children,
className,
grow = true, // default true -> keep grow 1 coming from flex_grid
shrink = 1, // default 1 for shrink
basis = 'auto', // default 'auto' basis
grow = true, // default true -> flex-grow: 1 and flex-basis: 0%
shrink = null, // default null for flex-shrink
basis = null, // default null flex-basis
component: Component = 'div',
...rest
}) => {
Expand Down

0 comments on commit b8ec51e

Please sign in to comment.