Member-only story

Material UI — Bottom Nav and Breadcrumbs

John Au-Yeung
4 min readSep 28, 2020

--

Photo by Ting Tian on Unsplash

Material UI is a Material Design library made for React.

It’s a set of React components that have Material Design styles.

In this article, we’ll look at how to add bottom navigation and breadcrumbs with Material UI.

Bottom Navigation

We can add bottom navigation to let us add links to move around our app.

To add it, we can use the BottomNavigation component.

For example, we can write:

import React from "react";
import BottomNavigation from "@material-ui/core/BottomNavigation";
import BottomNavigationAction from "@material-ui/core/BottomNavigationAction";
import RestoreIcon from "@material-ui/icons/Restore";
import FavoriteIcon from "@material-ui/icons/Favorite";
import LocationOnIcon from "@material-ui/icons/LocationOn";
export default function App() {
const [value, setValue] = React.useState(0);
return (
<BottomNavigation
value={value}
onChange={(event, newValue) => {
setValue(newValue);
}}
showLabels
>
<BottomNavigationAction label="latest" icon={<RestoreIcon />} />
<BottomNavigationAction label="favorites" icon={<FavoriteIcon />} />
<BottomNavigationAction label="location" icon={<LocationOnIcon…

--

--

No responses yet