import { Container } from '@zeal-ui/core';
Editable Code
<Container width="15rem" height="5rem" type="row" rowEven colCenter withBorder><Button>Item 1</Button><Button>Item 2</Button><Button>Item 3</Button></Container>;
Editable Code
<Container width="5rem" height="15rem" type="col" rowCenter colEven withBorder><Button>Item 1</Button><Button>Item 2</Button><Button>Item 3</Button></Container>;
This is a container rendered as a paragraph tag. Inspect to view the tag name.
Editable Code
<Container styledAs="p">This is a container rendered as a paragraph tag. Inspect to view the tag name.</Container>;
styledAs
Description
It is used to render the container as the given html tag.
Values
Valid html tag name.
width
Description
It is used to set the width of the container.
Values
String with valid width.
height
Description
It is used to set the height of the container.
Values
String with valid height.
type
Description
It is used to set the type of the container.
Values
row | row-reverse | col | col-reverse
rowStart | rowEnd | rowCenter | rowBetween | rowAround | rowEven
Description
It is used to set the position of the container row wise.
Values
Boolean value.
colStart | colEnd | colCenter | colBetween | colAround | colEven
Description
It is used to set the position of the container column wise.
Values
Boolean value.
withBorder
Description
It is used to add a border to the container.
Values
Boolean value.
scrollAuto
Description
It is used to add a scrollbar on x or y axis or both if the contents of the contianer overflows.
Values
Boolean value.
To learn about customizing the components check this section of the docs.