mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 00:29:12 +08:00
28 lines
484 B
TypeScript
28 lines
484 B
TypeScript
|
import { Breadcrumb } from 'antd';
|
||
|
import React from 'react';
|
||
|
|
||
|
export default () => (
|
||
|
<Breadcrumb
|
||
|
routes={[
|
||
|
{
|
||
|
path: '/home',
|
||
|
breadcrumbName: 'Home',
|
||
|
},
|
||
|
{
|
||
|
path: '/user',
|
||
|
breadcrumbName: 'User',
|
||
|
children: [
|
||
|
{
|
||
|
path: '/user1',
|
||
|
breadcrumbName: 'User1',
|
||
|
},
|
||
|
{
|
||
|
path: '/user2',
|
||
|
breadcrumbName: 'User2',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
]}
|
||
|
/>
|
||
|
);
|