1.0.0 • Published 1 month ago

breadcrumb-package v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

# Breadcrumb with SEO License: MIT

Implement breadcrumbs with SEO benefits for enhanced navigation and search engine visibility.

Description

This breadcrumb package seamlessly integrates with search engine optimization (SEO) strategies through structured schema implementation. By leveraging schema markup, it enhances a website's technical configuration, content relevance, and link popularity, resulting in improved visibility and accessibility in search engine results.

SEO Benefits

Breadcrumbs provided by this package not only enhance user experience by offering clear navigation paths but also deliver substantial SEO advantages. Search engines like Google utilize breadcrumbs, along with schema markup, to better comprehend website structures. This comprehensive understanding leads to enhanced indexing, increased visibility in search results, and improved rankings. Additionally, breadcrumbs aided by schema markup assist users and search engines in identifying page relationships, contributing to a more organized and accessible website.

Installation

To install the package, use npm:

npm install breadcrumbs-seo

Usage

Import the BreadcrumbSeo component from the package and use it with your breadcrumbItems array in any component where you want to display breadcrumbs:

import { BreadcrumbSeo } from "breadcrumbs-seo";

const breadcrumbItems = [
  {
    title: "Videos",
    link: "/videos",
    colorDisable: false
  },
  {
    title: "(eg: video title - Create Html file on the vs code for the first time)",
    link: "/videoId",
    colorDisable: false
  }
];

// In your component JSX
<>
 <BreadcrumbSeo items={breadcrumbItems} />
</>

Output :

Home > Video > Create Html file on the vs code for the first time

and if any of the title from the object length is longer then 25 then it will truncate it, if the video title is something like this "Create Html file on the vs code for the first time", so output will look something like this

Output :

Home > Video > Create Html file on the v...

if you don't want to truncate the title then use this "doEllipsis = false" and default value of the "doEllipsis = true or if you want to

<>
 <BreadcrumbSeo items={breadcrumbItems} doEllipsis={false}/>
</>

Output :

Home > Video > Create Html file on the vs code for the first time

change the ellipsis length then use this "ellipsisLength : 50", default value is 25

1.0.0

1 month ago