import React, { Fragment, useContext } from 'react'; import { Button, Card, CardBody, Media } from 'reactstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import vibrantImg from '../../assets/img/generic/vibrant.png'; // import card from '../../assets/img/generic/card.png'; // import vibrant from '../../assets/img/generic/vibrant.png'; import PageHeader from '../common/PageHeader'; import FalconCardHeader from '../common/FalconCardHeader'; import CodeHighlight from '../common/CodeHighlight'; import AppContext from '../../context/Context'; const SpinnersExample = () => { const { setNavbarStyle } = useContext(AppContext); return ( Falcon used the reactstrap's expand property in Navbar component to decide when the navbar vertical will expand or not. // content `} /> You can control the default collapsing behavior of Falcon's vertical navigation - whether it will show up with the collapsed or expanded state when the page loads. From your project directory,{' '} src/context/Context.js and set initial navbar collapse state like{' '} isNavbarVerticalCollapsed: false into AppContext then go to src/Main.js{' '} for set the value to the AppContext provider { setItemToStore('isNavbarVerticalCollapsed', isNavbarVerticalCollapsed); // eslint-disable-next-line }, [isNavbarVerticalCollapsed]); `} />
Navbar Vertical vibrant

You can update your Navbar Vertical background-color with Navbar Vertical vibrant.

Use navbarStyle prop to NavbarVertical component to change the navbar style. Example: `} /> Falcon allow you to customize your Navbar vibrant with SCSS variables. The available options are listed below:
Background

To change the background only for the Navbar vibrant, add the inline CSS style to Collapse tag in NavbarVertical.js file.

`} />

For other navbar style add the SCSS variables $navbar-inverted-bg, navbar-card-bg in your _user-variables.scss. You can update both overlay color using this variable. Example:

Navbar card shadow

To change the shadow of the Navbar Card, add the SCSS variable $navbar-card-shadow in your _user-variables.scss.. Example:

Link color

To change the color of the Navbar Vibrant links, add the SCSS variable{' '} $navbar-vibrant-link-color in your _user-variables.scss.. Example:

Link hover color

To change the hover color of the Navbar Vibrant links, add the SCSS vairable{' '} $navbar-vibrant-link-hover-color in your _user-variables.scss. Example:

{/* Link active color */}
Link active color

To change the active color of the Navbar Vibrant links, add the SCSS vairable{' '} $navbar-vibrant-link-active-color in your _user-variables.scss. Example:

Navbar vibrant divider

To change the divider color, add the SCSS vairable $navbar-vibrant-hr-color in your _user-variables.scss. Example:

Navbar vibrant scrollbar color

To change the scrollbar color, add the SCSS vairable $navbar-vibrant-scrollbar-color in your _user-variables.scss. Example:

For the inverted and card variation, please follow the same procedure.

); }; export default SpinnersExample;