• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
      • Overview
      • Getting Started
      • ActionSheet
      • AppBar
      • Avatar
      • BottomNavigation
      • Breadcrumb
      • Card
      • Drawer
      • ExpansionPanel
      • GridLayout
      • Menu
      • Context Menu
      • PanelBar
      • Splitter
      • StackLayout
      • TabStrip
      • Stepper
      • TileLayoutupdated
      • Timeline
      • Globalization
      • API
    • ListBox
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

BreadcrumbLink

Represents the [BreadcrumbLink](% slug api_layout_breadcrumblink %) component.

A Functional Component.

import { Breadcrumb, BreadcrumbLink } from '@progress/kendo-react-layout';
const items = [
  {
    id: 'home',
    text: 'Home',
    iconClass: 'k-i-home',
  },
  {
    id: 'products',
    text: 'Products',
  },
  {
    id: 'computer',
    text: 'Computer',
  }
];

const App = () => {
const [data,setData] = React.useState(items);
const handleItemSelect = (event, id) => {
  const itemIndex = data.findIndex((curValue) => curValue.id === id);
  const newData = data.slice(0, itemIndex + 1);
  setData(newData);
};

const CustomLink = (data) => {
 return (
    <BreadcrumbLink
      id={data.id}
      text={data.text}
      onItemSelect={(event) => handleItemSelect(event, data.id)}
    />
  );
};

return (
  <Breadcrumb
    data={data}
    breadcrumbLink={(items) => CustomLink(items)}
  />
)}

ReactDOM.render(<App />, document.querySelector('my-app'));
NameTypeDefaultDescription

props

BreadcrumbLinkProps intersected with RefAttributes<undefined>

The props of the BreadcrumbLink component.

In this article

Not finding the help you need?