🤩
Windframe Import Update is finally here.

ButtonToolbar

React Bootstrap 5 ButtonToolbar

For more complicated components, combine sets of button groups into button toolbars. To space out groups, buttons, and other elements, use utility classes as needed.

Importing the React Bootstrap 5 ButtonToolbar component

To use the Contrast React Bootstrap 5 ButtonToolbar component, you start up by importing the CDBButton component into your project.

js
import { CDBBtnTb } from 'cdbreact';

Default ButtonToolbar

In this section of the tutorial we also use the CDBBtn component to create buttons, and the CDBBtnGrp alongside the CDBBtnTb. Check out our docs for more information.

js
import React from 'react';
import { CDBBtnTb, CDBBtn, CDBBtnGrp, CDBContainer } from 'cdbreact';
export const ButtonToolbar = () => {
return (
<CDBContainer>
<CDBBtnTb>
<CDBBtnGrp className="mr-2">
<CDBBtn color="primary">click me</CDBBtn>
<CDBBtn color="secondary">click me</CDBBtn>
<CDBBtn color="success">click me</CDBBtn>
</CDBBtnGrp>
<CDBBtnGrp size="sm" className="mr-2">
<CDBBtn color="primary">click me</CDBBtn>
<CDBBtn color="secondary">click me</CDBBtn>
<CDBBtn color="success">click me</CDBBtn>
</CDBBtnGrp>
<CDBBtnGrp>
<CDBBtn color="danger">click me</CDBBtn>
<CDBBtn color="dark">click me</CDBBtn>
<CDBBtn color="warning">click me</CDBBtn>
</CDBBtnGrp>
</CDBBtnTb>
</CDBContainer>
);
};

Contrast React Bootstrap 5 ButtonToolbar Props

This section will build on your information about the props you get to use with the Contrast React Bootstrap 5 ButtonToolbar component. You will find out what these props do, their default values, and how you would use them in your code.

Other choices for the 'CDBBtnTb' component are included in the table below.

NameTypeDefaultDescriptionExample
classNameStringAdds custom classesAdds custom classes<CDBBtnTb className="myClass" ... />
roleStringtoolbarChange default component's role<CDBBtnTb role="toolbar" ... />

Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template

ad-banner

Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast