Devwares-Team / cdbreact

Contrast Design Bootstrap : Elegant UI Kit and reusable components for building mobile-first, responsive websites and web apps
https://www.devwares.com/product/contrast
Other
51 stars 16 forks source link

CDBIcon' is not exported from 'cdbreact #8

Closed akshat-khosya closed 1 year ago

akshat-khosya commented 2 years ago

import React,{useState} from "react"; import { BrowserRouter as Router } from 'react-router-dom'; import { CDBNavbar, CDBNavBrand, CDBNavItem, CDBNavLink, CDBDropDown, CDBDropDownMenu, CDBDropDownToggle, CDBBtn, CDBNavToggle, CDBCollapse, CDBNavbarNav, CDBContainer } from "cdbreact"; import { CDBIcon } from "cdbreact"; const Navbar = () => { const [collapse2, setCollapse2] = useState(false);

const bgBlack = { backgroundColor: "#000000", color: "#f4f4f4" };

return (

Navbar { setCollapse2(!collapse2); }} /> Categories Coming soon #pleaseStayUpdated. Help About EN Login Sign Up

); }; export default Navbar;

// I used this code but giving this error CDBIcon' is not exported from 'cdbreact

Speedwares commented 2 years ago

Hello akshat,

That is because CDBICON is a pro component. You can get the pro version of the library here https://www.devwares.com/product/contrast-pro or you can remove the CDBICON import, all its uses cases in your code and use another icon library instead. Hope this helps