jakezatecky / react-checkbox-tree

A simple and elegant checkbox tree for React.

Home Page:https://jakezatecky.github.io/react-checkbox-tree/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

css is not loading properly

darda-veostr opened this issue · comments

Describe the bug
.css file is not working

I have css file include Like this:
import "react-checkbox-tree/lib/react-checkbox-tree.css";

Screenshots

react_tree_view

The CSS looks to have loaded fine, but the icons are not rendering. Did you import Font Awesome (the default icon library for this component)? You could add the following to the HTML:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" />
commented

@jakezatecky Had a similar problem when importing into the page, the CDN worked for me.