Box, Containers
Reference
Box: Standard component that provides a wrapper over an HTMLdivContaineris a styled derivative ofBoxthat sets height and width to 100% and centers the content. All other props are passed through.- Recommended way is to use
Boxrather than using rawdiv
Props
display: CSS display type. Defaultflexdirection: The flex direction, required when the display type isflex.backgroundColor: Background color. Value should be specified from the color palette. See Color palettecolor: Color. See Color palette- All other CSS properties of
divcan be set like border, height, width etc.
Usage
const { protrakComponents } = React.useContext(customWidgetContext);
const { Box, Container } = protrakComponents;
return(
<Box alignItems="center" {...props}>
{children}
</Box>
<Box
marginLeft="1rem"
height="auto"
overflow="auto"
direction="column"
width={'100%'}
paddingRight="1rem"
>
</Box>
);