Liquid Modules
  • Modules
    • Getting Started
    • Authentication
    • React
      • Breadcrumbs
      • Carousel
        • Category Carousel
        • Product Carousel
      • Cart
      • Checkout
      • Order Confirmation
      • Order Tracking
      • Product
      • Product List Page
Powered by GitBook
On this page
  • Usage
  • Properties
  1. Modules
  2. React

Breadcrumbs

The breadcrumb module is a customizable breadcrumb component that can be used to control website navigation.

PreviousReactNextCarousel

Last updated 1 year ago

Usage

import { LiquidBreadcrumb } from '@liquidcloud/modules-react';
import { FC } from 'react';

const Component: FC = () => {
  return (
    <LiquidBreadcrumb
      items={JSON.stringify([
        { label: 'Home', href: '/' },
        { label: 'Collection', href: '/collection' },
        { label: 'Sub-collection', href: '/sub-collection' },
      ])}
      current="Product Name"
    />
  );
};

export default Component;

Properties

property
type
default
description

items

array | string

-

A stringified list of objects containing label and href for each breadcrumb item.

current

string

-

The current page name.