mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
20 lines
439 B
TypeScript
20 lines
439 B
TypeScript
|
import { Grid } from '@mui/material';
|
||
|
import { FC } from 'react';
|
||
|
|
||
|
export const GridCol: FC<{ vertical?: boolean }> = ({
|
||
|
children,
|
||
|
vertical = false,
|
||
|
}) => {
|
||
|
return (
|
||
|
<Grid
|
||
|
container={vertical}
|
||
|
item
|
||
|
display="flex"
|
||
|
alignItems={vertical ? 'start' : 'center'}
|
||
|
direction={vertical ? 'column' : undefined}
|
||
|
>
|
||
|
{children}
|
||
|
</Grid>
|
||
|
);
|
||
|
};
|