Tailwind CSS Breadcrumbs - Theme

Learn how to customize the theme and styles for breadcrumbs component, the theme object for breadcrumbs component has two main objects:

A. The defaultProps object for setting up the default value for props of breadcrumbs component.
B. The styles object for customizing the theme and styles of breadcrumbs component.

You can customize the theme and styles of breadcrumbs component by adding Tailwind CSS classes as key paired values for objects.



Breadcrumbs Theme Object Type

interface BreadcrumbsStyleTypes {
  defaultProps: {
    separator: node;
    fullWidth: boolean;
    className: string;
  };
  styles: {
    base: {
      root: {
        initial: object;
        fullWidth: object;
      };
      list: object;
      item: {
        initial: object;
        disabled: object;
      };
      separator: object;
    };
  };
}


For TypeScript Only

import type { BreadcrumbsStyleTypes } from "@material-tailwind/react";

Breadcrumbs Theme Customization

const theme = {
  breadcrumbs: {
    styles: {
      base: {
        separator: {
          userSelcet: "select-none",
        },
      },
    },
  },
};
Edit this page on Github