Spacer

Utility component for horitonzal and vertical spacing between elements.

How to space

Simply import the spacer component

$ import {Spacer} from 'axelra-styled-bootstrap-grid'; 

And pass it a prop xN, where N is the spacing you want to use.

App.tsx
import {Spacer, Container, Col, Row, Spacer } from 'axelra-styled-bootstrap-grid'; 


export const App = () => {
  return (
    <Container fluid>
      <Spacer x2 />
      <Row>
        <Col xs={1} />
        <Col xs={10}>
          <h1>Wonderful Title</h1>
          <Spacer x7 />
        </Col >
        <Col xs={1} />
      </Row>
    </MyContainer>
  );
};

Last updated