@mdbootstrap/react-labels
v1.0.0
Published
Responsive React Labels built with Bootstrap 5. Badge Labels are for counters, categories & tags. Floating labels refer to forms, and slider labels to the range.
Downloads
4
Maintainers
Readme
Responsive React Labels built with Bootstrap 5. Badge Labels are for counters, categories & tags. Floating labels refer to forms, and slider labels to the range.
Check out React Bootstrap Labels Documentation for detailed instructions & even more examples.
:warning: Important: The term "Bootstrap Label" is currently very ambiguous. Many different elements are colloquially referred to as "Labels" by some developers. We created this page to help you find the proper component that you are looking for. You will find more examples of each one in the main documentation pages that are linked below.
Badge Labels
The valid term for Labels in React Bootstrap 5 is now React Badges. Make sure to jump straight to the Badges documentation if you are looking for more examples & customization options for the component from the example below.
import React from 'react';
import { MDBBadge } from 'mdb-react-ui-kit';
export default function App() {
return (
<div>
<h2>
Example heading
<MDBBadge className='ms-2'>NEW</MDBBadge>
</h2>
</div>
);
}
Floating Labels for Inputs
The term Label is now mainly used for the label
element describing the input fields in form. Make sure to jump straight to the React Input fields documentation if you are looking for more examples & customization options for the component from the example below.
import React from 'react';
import { MDBInput } from 'mdb-react-ui-kit';
export default function Input() {
return (
<MDBInput label='Example label' id='form1' type='text' />
);
}
How to use?
Download MDB React - free UI KIT
Choose your favourite customized component and click on the image
Copy & paste the code into your MDB project
▶️ Subscribe to YouTube channel for web development tutorials & resources