4.2.2 • Published 7 months ago

react-bootstrap-box v4.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

React + Bootstrap Box

📦 React + Bootstrap Box

A versatile React component designed to apply Bootstrap utility classnames based on provided props.

📄 License

Licensed under MIT. Totally free for private or commercial projects.

✨ Introduction

The React + Bootstrap Box component simplifies applying Bootstrap utility classes in React. With an intuitive prop-driven API, it enables you to quickly and efficiently manage styles like borders, spacing, flexbox, typography, and more - all without manually writing classnames.

📥 Installation

To install this package use npm:

npm install bootstrap react-bootstrap-box

Or with Yarn:

yarn add bootstrap react-bootstrap-box

🚀 Getting Started

1. Including Bootstrap CSS

First, ensure Bootstrap CSS is included in your project:

import 'bootstrap/dist/css/bootstrap.min.css';

📖 Usage

Using the Box Component

In your App.tsx, or any other component, the Box component can be used:

import React from 'react';

import { Box } from 'react-bootstrap-box';

const App = () => {
  return (
    <Box background="primary" color="white" margin="2" padding="5">
      Hello, world!
    </Box>
  );
};

export default App;

📚 Learn More

Discover the full potential of the React + Bootstrap Box component by exploring its Storybook documentation, where you'll find live examples, interactive demos, and detailed use cases for every prop.

3.0.1

10 months ago

3.0.0

10 months ago

4.2.2

7 months ago

4.1.0

8 months ago

4.0.0

8 months ago

4.2.1

7 months ago

4.2.0

7 months ago

2.0.0

1 year ago

1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago