react-icons/bs#BsTextIndentLeft JavaScript Examples

The following examples show how to use react-icons/bs#BsTextIndentLeft. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Sidebar.js    From Official-Website with MIT License 6 votes vote down vote up
function Sidebar(props) {

    return (
        <>
            <div className='sidebar'>
                <Link to='#' className='menu-bar-inactive'>
                    <IconContext.Provider value={{ color: '#252537' }}>
                        <BsTextIndentLeft onClick={props.sidebarState} />
                    </IconContext.Provider>
                </Link>
            </div>
            <IconContext.Provider value={{ color: 'white' }}>
                <nav className={props.initialState ? 'nav-menu active' : 'nav-menu'}>
                            <Link to='#' className='menu-bars' onClick={props.sidebarState}>
                                <BsTextIndentRight />
                            </Link>
                    <ul className='nav-menu-items'>
                        {SidebarData.map((item, index) => {
                            return (
                                <li key={index} className={item.cName}>
                                    <Link to={item.path} >
                                        {item.icon}
                                        <span>{item.title}</span>
                                    </Link>
                                </li>
                            );
                        })}
                    </ul>
                </nav>
            </IconContext.Provider>
        </>
    );
}