logoNamu Design

⌘ K
  • Design
  • Development
  • Components
  • Blog
  • Resources
1.0.0
  • Components Overview
  • General
    • Button
    • FloatButtonNew
    • Icon
    • Typography
  • Layout
    • Divider
    • Grid
    • Layout
    • Space
  • Navigation
    • Anchor
    • Breadcrumb
    • Dropdown
    • Menu
    • Pagination
    • Steps
  • Data Entry
    • AutoComplete
    • Cascader
    • Checkbox
    • ColorPickerNew
    • DatePicker
    • Form
    • Input
    • InputNumber
    • Mentions
    • Radio
    • Rate
    • Select
    • Slider
    • Switch
    • TimePicker
    • Transfer
    • TreeSelect
    • Upload
  • Data Display
    • Avatar
    • Badge
    • Calendar
    • Card
    • Carousel
    • Collapse
    • Descriptions
    • Empty
    • Image
    • List
    • Popover
    • QRCodeNew
    • Segmented
    • Statistic
    • Table
    • Tabs
    • Tag
    • Timeline
    • Tooltip
    • TourNew
    • Tree
  • Feedback
    • Alert
    • Drawer
    • Message
    • Modal
    • Notification
    • Popconfirm
    • Progress
    • Result
    • Skeleton
    • Spin
    • Watermark
  • Other
    • Affix
    • AppNew
    • ConfigProvider
When To Use
Examples
Basic Usage
With an Icon
react-router V6
Configuring the Separator
Bread crumbs with drop down menu
Configuring the Separator Independently
Debug Routes
API
Breadcrumb
ItemType
RouteItemType
SeparatorType
Use with browserHistory
Design Token

Breadcrumb

  • AnchorDropdown

    Resources

    Namu Design Charts
    Namu Design Pro
    Namu Design Pro Components
    Namu Design Mobile
    Namu Design Mini
    Namu Design Landing-Landing Templates
    Scaffolds-Scaffold Market
    Umi-React Application Framework
    dumi-Component doc generator
    qiankun-Micro-Frontends Framework
    ahooks-React Hooks Library
    Ant Motion-Motion Solution
    China Mirror 🇨🇳

    Community

    Awesome Namu Design
    Medium
    Twitter
    yuqueNamu Design in YuQue
    Namu Design in Zhihu
    Experience Cloud Blog
    seeconfSEE Conf-Experience Tech Conference

    Help

    GitHub
    Change Log
    FAQ
    Bug Report
    Issues
    Discussions
    StackOverflow
    SegmentFault

    Ant XTechMore Products

    yuqueYuQue-Document Collaboration Platform
    AntVAntV-Data Visualization
    EggEgg-Enterprise Node.js Framework
    kitchenKitchen-Sketch Toolkit
    xtechAnt Financial Experience Tech
    Theme Editor
    Made with ❤ by
    Ant Group and Namu Design Community

    A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy.

    When To Use

    • When the system has more than two layers in a hierarchy.
    • When you need to inform the user of where they are.
    • When the user may need to navigate back to a higher level.
    // works when >=5.3.0, recommended ✅
    return <Breadcrumb items={[{ title: 'sample' }]} />;
    // works when <5.3.0, deprecated when >=5.3.0 🙅🏻‍♀️
    return (
    <Breadcrumb>
    <Breadcrumb.Item>sample</Breadcrumb.Item>
    </Breadcrumb>
    );
    // or
    return <Breadcrumb routes={[{ breadcrumbName: 'sample' }]} />;

    Examples

    Basic Usage

    The simplest use.

    expand codeexpand code
    react-router V6

    Used together with react-router@6+.

    expand codeexpand code
    Bread crumbs with drop down menu

    Breadcrumbs support drop down menu.

    expand codeexpand code
    Debug Routes

    Origin routes debug.

    expand codeexpand code
    With an Icon

    The icon should be placed in front of the text.

    expand codeexpand code
    Configuring the Separator

    The separator can be customized by setting the separator property: separator=">".

    expand codeexpand code
    Configuring the Separator Independently

    Customize separator for each other.

    expand codeexpand code

    API

    Common props ref:Common props

    Breadcrumb

    PropertyDescriptionTypeDefaultVersion
    itemRenderCustom item renderer(route, params, routes, paths) => ReactNode-
    paramsRouting parametersobject-
    itemsThe routing stack information of routeritems[]-5.3.0
    separatorCustom separatorReactNode/

    ItemType

    type ItemType = RouteItemType | SeparatorType

    RouteItemType

    PropertyDescriptionTypeDefaultVersion
    classNameThe additional css classstring-
    dropdownPropsThe dropdown propsDropdown-
    hrefTarget of hyperlink. Can not work with pathstring-
    pathConnected path. Each path will connect with prev one. Can not work with hrefstring-
    menuThe menu propsMenuProps-4.24.0
    onClickSet the handler to handle click event(e:MouseEvent) => void-
    titleitem nameReactNode-

    SeparatorType

    const item = {
    type: 'separator', // Must have
    separator: '/',
    };
    PropertyDescriptionTypeDefaultVersion
    typeMark as separatorseparator5.3.0
    separatorCustom separatorReactNode/5.3.0

    Use with browserHistory

    The link of Breadcrumb item targets # by default, you can use itemRender to make a browserHistory Link.

    import { Link } from 'react-router';
    const items = [
    {
    path: 'index',
    title: 'home',
    },
    {
    path: 'first',
    title: 'first',
    children: [
    {
    path: '/general',
    title: 'General',
    },
    {
    path: '/layout',
    title: 'Layout',
    },
    {
    path: '/navigation',
    title: 'Navigation',
    },
    ],
    },
    {
    path: 'second',
    title: 'second',
    },
    ];
    function itemRender(route, params, items, paths) {
    const last = items.indexOf(item) === items.length - 1;
    return last ? <span>{item.title}</span> : <Link to={paths.join('/')}>{item.title}</Link>;
    }
    return <Breadcrumb itemRender={itemRender} items={items} />;

    Design Token

    Component Token

    Global Token

    1. Home
    2. /
    3. Application Center
    4. /
    5. Application List
    6. /
    7. An Application
    1. Namu Design
    2. /
    3. Component
    4. /
    5. General
    6. /
    7. Button
    1. Home
    2. /
    3. User
    1. /
    2. Application List
    3. /
    4. Application
    1. Home
    2. >
    3. Application Center
    4. >
    5. Application List
    6. >
    7. An Application
    1. Location
    2. :
    3. Application Center
    4. /
    5. Application List
    6. /
    7. An Application