Bootstrap Components

The theme uses React Bootstrap plugin which extends the Bootstrap framework and makes using Bootstrap in React easy. Check out docs lower on the page or visit plugin documentation here.

Alert

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. See the React Bootstrap documentation for more details.

import { Alert } from 'react-bootstrap'

export default () => {
    return (
        <Alert variant="primary">This is a primary alert—check it out!</Alert>
        <Alert variant="secondary">This is a secondary alert—check it out!</Alert>
    )
}
Badge

Small count and labeling component. See the React Bootstrap documentation for more details.

primarysecondarysuccesswarninginfodanger
Pill Badges
primarysecondarysuccesswarninginfodanger
Light Badges
primarysecondarysuccesswarninginfodanger
Notification Badges
105
import { Badge } from 'react-bootstrap'

export default () => {
    return (
        <Badge bg="primary">
            primary
        </Badge>
        <Badge
            bg="secondary-light"
            text="secondary"
            pill
        >
            secondary
        </Badge>
    )
}
Buttons

Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more. See the React Bootstrap documentation for more details.

Button Colors
Button Sizes
import { Button } from 'react-bootstrap'

export default () => {
    return (
        <>
            <Button variant="primary">Primary</Button>
            <Button variant="secondary">Secondary</Button>
        </>
    )
}
Card

Bootstrap’s cards provide a flexible and extensible content container with multiple variants and options. See the React Bootstrap documentation for more details.

Card image cap

Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Go somewhere
Card image

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

import { Card, Button } from 'react-bootstrap'

export default () => {
    return (
      <Card>
        <Card.Img
          variant="top"
          src="/content/img/photo/restaurant-1508766917616-d22f3f1eea14.jpg"
          alt="Card image cap"
        />
        <Card.Body>
          <Card.Title as="h4">Card title</Card.Title>
          <Card.Text>
            Some quick example text to build on the card title and make up
            the bulk of the card's content.
          </Card.Text>
          <Button href="#">Go somewhere</Button>
        </Card.Body>
      </Card>
    )
}
Forms

Examples and usage guidelines for form control styles, layout options, and custom components for creating a wide variety of forms. See the React Bootstrap documentation for more details.

Form Group
We'll never share your email with anyone else.
Input Sizes
Input Group
@
Custom Inputs
import { Form } from 'react-bootstrap'

export default () => {
    return (
        <Form>
            <div className="mb-4>
                <Form.Label htmlFor="exampleInputEmail1">Email address</Form.Label>
                <Form.Control id="exampleInputEmail1" type="email" aria-describedby="emailHelp" placeholder="Enter email" />
                <Form.Text id="emailHelp">We'll never share your email with anyone else.</Form.Text>
            </div>
        </Form>
    )
}
List Group

List groups are a flexible and powerful component for displaying a series of content. Modify and extend them to support just about any content within. See the React Bootstrap documentation for more details.

Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Porta ac consectetur ac
Vestibulum at eros
import { ListGroup } from 'react-bootstrap'

export default () => {
    return (
        <ListGroup>
            <ListGroup.Item>Cras justo odio</ListGroup.Item>
            <ListGroup.Item>Dapibus ac facilisis in</ListGroup.Item>
            <ListGroup.Item>Morbi leo risus</ListGroup.Item>
            <ListGroup.Item>Porta ac consectetur ac</ListGroup.Item>
            <ListGroup.Item>Vestibulum at eros</ListGroup.Item>
        </ListGroup>
    )
}
Progress

Bootstrap custom progress bars featuring support for stacked bars, animated backgrounds, and text labels. See the React Bootstrap documentation for more details.

import { ProgressBar } from 'react-bootstrap'

export default () => {
    return (
        <>
            <ProgressBar now={25} variant="primary" />
            <ProgressBar now={50} variant="info" />
            <ProgressBar now={75} variant="success" />
            <ProgressBar now={100} variant="secondary" />
        </>
    )
}
Tooltips

Custom Bootstrap tooltips with CSS and JavaScript using CSS3 for animations and data-attributes for local title storage. See the React Bootstrap documentation for more details.

import { Button, Tooltip, OverlayTrigger } from 'react-bootstrap'

export default () => {
    return (
        <>
            {["top", "right", "bottom", "left"].map((placement) => (
                <OverlayTrigger
                    key={placement}
                    placement={placement}
                    overlay={
                        <Tooltip id={`tooltip-${placement}`}>
                            Tooltip on <strong>{placement}</strong>.
                        </Tooltip>
                    }
                >
                    <Button variant="outline-primary" className="mb-1 me-1">
                        Tooltip on {placement}
                    </Button>
                </OverlayTrigger>
            ))}
        </>
    )
}