import BottomBar from "@intility/bifrost-react/BottomBar";
Floating bottom bar
Fixed positioning (will float on top of other content)
Responsive vertical padding like .bf-page-padding (remove all padding with noPadding prop)
Automatically makes space for sidebar/collapsed sidebar/no sidebar with transition
Height will adjust to its content
Main content overlap
Since the BottomBar will float on top of other content, you need to make sure
to make vertical space for it at the bottom of your content, usually a
padding-bottom: [your BottomBar height] on your main content will do the
trick.
<BottomBar><Button>A button</Button></BottomBar>
Demo with Nav sidebar
import{faHome,faInfoCircle,faUser,faCog,}from"@fortawesome/free-solid-svg-icons";importBottomBarfrom"@intility/bifrost-react/BottomBar";importNavfrom"@intility/bifrost-react/Nav";exportdefaultfunction(){return(<Navlogo="App Name"top={<><ahref="#path"title="Profile"><Nav.Itemicon={faUser}/></a><ahref="#path"><Nav.Item>About</Nav.Item></a></>}side={<><ahref="#path"><Nav.Itemicon={faHome}>Home</Nav.Item></a><ahref="#path"><Nav.Itemicon={faCog}>Settings</Nav.Item></a></>}>
App content goes here
<BottomBar>Bottom bar content</BottomBar></Nav>);}