Skip to main content

Columns using component

Properties of column component

PropertyValueDatatypeDescription
xxl1 to 12numberUsed for very large screen with width > 1400px
xl1 to 12numberUsed for very large screen with width > 1200px
lg1 to 12numberUsed for large screen with width > 992px
md1 to 12numberUsed for medium width screen with width > 768px
sm1 to 12numberUsed for small width screen with width > 576px
xs1 to 12numberUsed for very small screen with width < 576px

Basic uage example

import { Container, Row, Col } from "layout-emotions";
function MyApp() {
return (
<Container>
<Row>
<Col md={6}>
<p>Column 1</p>
</Col>
<Col md={6}>
<p>Column 2</p>
</Col>
</Row>
</Container>
)
}