Breadcrumb

Breadcrumb is a secondary navigation pattern that identifies the page position inside a hierarchy.

installyarn add @clayui/breadcrumb
versionNPM Version
useimport Breadcrumb from '@clayui/breadcrumb';

Example

Breadcrumbs are a navigation aid for your site, use them when you need to provide a quick way to jump back to previously viewed pages or sections.

import {Provider} from '@clayui/core';
import Breadcrumb from '@clayui/breadcrumb';
import React from 'react';

import '@clayui/css/lib/css/atlas.css';

export default function App() {
	return (
		<Provider spritemap="/public/icons.svg">
			<div className="p-4">
				<Breadcrumb
					items={[
						{
							href: '#1',
							label: 'Home',
						},
						{
							href: '#2',
							label: 'About',
						},
						{
							href: '#3',
							label: 'Contact',
						},
						{
							href: '#4',
							label: 'Projects',
						},
						{
							active: true,
							href: '#5',
							label: 'Five',
						},
					]}
				/>
			</div>
		</Provider>
	);
}

Table of Contents