Badges

You can add the component on any page in the template. You need to follow the steps given below:

Step 1: Please add the code given below in the page where you want to add the component.

<Badge color="primary">New</Badge>

Step 2: Now Import the component from its parent library.

import { Badge } from 'reactstrap';

We have given you an example of adding a simple badge on the Ecommerce Dashboard.

You can check some other layouts of badges below. For adding any of the below layout in the template, please check their relative code in the src->routes->components->badges->index.js file.

If you are using both type of badges(material badge & reactstrap badge) then you need to write MatBadge for material badges instead of Badge.

Last updated