Nextjs Breadcrumbs

screenshot of Nextjs Breadcrumbs
nextjs
react

A dynamic, highly customizable breadcrumbs component for Next.js

Overview

The nextjs-breadcrumbs is a dynamic and highly customizable breadcrumbs component designed for use specifically within Next.js applications. It offers features such as custom label transformations, omission of root labels, and the ability to style each HTML element of the component individually.

Features

  • Dynamic Breadcrumb Navigation: Generates a breadcrumb navigation based on the current path of the Next router.
  • Custom List of Characters: Allows for the customization of characters to be replaced in each label.
  • Custom Label Transformation: Provides the option to pass a label transformation function to customize the labels.
  • Omit Root/Home Label: Ability to omit the root level label entirely.
  • Omit Specific Path Indexes: Users can choose to omit certain path indexes from the breadcrumb navigation.
  • Custom Styling (CSS): Enable users to style each HTML element of the component separately.

Prerequisites

  • To use the default styling, import the CSS file from the package by adding import 'nextjs-breadcrumbs/dist/index.css'; at the top of your _app.js.

Usage

  1. Custom Styling: Use inline styles or assign your classes for styling.
  2. Breadcumb Navigation: Utilize the dynamic breadcrumb navigation based on the Next router's current path.
  3. Customization Options: Take advantage of features like custom label transformations and the ability to omit root labels or specific path indexes.
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

github-pages
GitHub Pages

Gridsome is a Vue.js-based static site generator that makes it easy to build fast and flexible websites and applications by leveraging modern web technologies like GraphQL, Webpack, and hot reloading

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.