Chakra UI Navigation Breadcrumb
Last Updated :
24 Apr, 2025
Chakra UI Navigation Breadcrumb is a versatile and user-friendly component designed for efficient navigation within web applications. With a focus on simplicity and customization, Chakra UI Breadcrumb seamlessly integrates into Chakra UI, a popular React component library. It enables developers to create intuitive breadcrumb trails, enhancing user experience by providing clear pathways and context within complex navigation structures.
Prerequisites:
Approach:
We build different types of Navigation Breadcrumbs using Chakra UI with React js. We will be using the Breadcrumb component Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbSeparator, and so on with different sizes and style properties.
Steps to Create the Project:
Step 1: Create a React application using the following command:
npx create-react-app gfg
Step 2: After creating your project folder(i.e. my-app), move to it by using the following command:
cd gfg
Step 3: After creating the React application, Install the required package using the following command:
npm i @chakra-ui/react @emotion/react@^11 @emotion/styled@^11 framer-motion@^6
Step 4: After that we will install the Chakra UI Icon Library using the following command:
npm i @chakra-ui/icons
Project Structure:
Project StructureThe updated dependencies in package.json will look like this:
"dependencies": {
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/react": "^2.8.2",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"framer-motion": "^11.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
}
Example: Below is the basic example of the Chakra UI Navigation Breadcrumb:
JavaScript
// App.js File
import React from 'react';
import {
ChakraProvider, Text, Breadcrumb,
BreadcrumbItem, BreadcrumbLink, Box
} from '@chakra-ui/react';
import {
ChevronRightIcon
} from '@chakra-ui/icons';
function App() {
return (
<ChakraProvider>
<Text
color="#2F8D46"
fontSize="2rem"
textAlign="center"
fontWeight="400"
my="1rem">
GeeksforGeeks -
React JS Chakra UI concepts
</Text>
<Box
display="flex"
alignItems="center"
justifyContent="center"
flexDirection="column">
<Breadcrumb>
<BreadcrumbItem>
<BreadcrumbLink href='#'>
Home
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem>
<BreadcrumbLink href='#'>
About
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem isCurrentPage>
<BreadcrumbLink href='#'>
Contact
</BreadcrumbLink>
</BreadcrumbItem>
</Breadcrumb>
<Breadcrumb separator='-'>
<BreadcrumbItem>
<BreadcrumbLink href='#'>
Home
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem>
<BreadcrumbLink href='#'>
About
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem isCurrentPage>
<BreadcrumbLink href='#'>
Contact
</BreadcrumbLink>
</BreadcrumbItem>
</Breadcrumb>
<Breadcrumb spacing='8px'
separator={
<ChevronRightIcon color='gray.500' />
}>
<BreadcrumbItem>
<BreadcrumbLink href='#'>
Home
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem>
<BreadcrumbLink href='#'>
About
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem isCurrentPage>
<BreadcrumbLink href='#'>
Contact
</BreadcrumbLink>
</BreadcrumbItem>
</Breadcrumb>
</Box>
</ChakraProvider>
);
}
export default App;
Steps to run the application:
npm start
Output:
Chakra UI Navigation Breadcrumb
Similar Reads
How to create a Breadcrumb Navigation ?
In this article, we will learn how to create breadcrumbs navigation. Breadcrumb navigation is a website navigation scheme that visually represents the user's path from the homepage to the current page. It typically appears as a horizontal trail of links, showing the hierarchical structure of pages.
2 min read
React MUI Breadcrumbs Navigation
MUI or Material-UI, itâs a React component library. It enables you to build your own design system and develop React applications faster. It is basically a design language that was developed by Google in 2014. It uses more Design and Animation, grid-system, and provides shadows and lightning effects
3 min read
How to create Breadcrumb Navigation Using React ?
Breadcrumbs are useful in navigation and provide users with links representing their path through a website or application. In this tutorial, we'll create a simple e-commerce website with product listings and detail pages, incorporating breadcrumbs for a better user experience.Output Preview: Let us
6 min read
Breadcrumb Navigation in Design
Breadcrumb navigation is an essential element of the User Interface design and implementation, which in particular on websites and in applications with hierarchical structures. The title of the work is inspired by the fairy tale "Hansel and Gretel," during which the youngsters dropped the bread trai
5 min read
Chakra UI Navigation Link
Chakra UI Navigation Link are accessible elements used primarily for navigation and a versatile component designed to improve the navigation experience within web applications. Integrated seamlessly into Chakra UI, a popular React component library, this feature empowers developers to create interac
2 min read
React Chakra UI Navigation
React Chakra UI Navigation Bar is used in every website to make it more user-friendly so that the navigation through the website becomes easy and the user can directly search for the topic of their interest. Prerequisites:NPM and NodeReact JSHTML, CSS, and JavaScriptReactJS ChakraUIWe will use the f
3 min read
Chakra UI Navigation Stepper
Chakra UI Navigation Stepper is a versatile and user-friendly component designed to facilitate smooth navigation within web applications and also used to indicate progress through a multi-step process. With a focus on simplicity and customization, Chakra UI Stepper seamlessly integrates into Chakra
3 min read
Foundation CSS Breadcrumbs
Foundation CSS is an open-source & responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to layout stunning responsive websites, apps, and emails that appear amazing & can be accessible to any device. In this article, we will discuss the Breadcrumb com
2 min read
CSS Navigation Bar
CSS Navigation Bar also known as Nav Bar helps users navigate through different sections of a website. It is styled using CSS to enhance its appearance and functionality, making it visually appealing and responsive. Typically located at the top or side of a webpage. Navigation bar helps users easily
5 min read
Navigation Bar using JavaScript
A Navigation Bar is a user interface element commonly found in websites and applications. It typically appears at the top of a web page or screen and It's an essential component of any website, allowing users to easily navigate and access different sections or pages. In this tutorial, we will make a
2 min read