ant-design/components/breadcrumb/demo/debug-routes.tsx

28 lines
484 B
TypeScript
Raw Normal View History

import React from 'react';
import { Breadcrumb } from 'antd';
export default () => (
<Breadcrumb
routes={[
{
path: '/home',
breadcrumbName: 'Home',
},
{
path: '/user',
breadcrumbName: 'User',
children: [
{
path: '/user1',
breadcrumbName: 'User1',
},
{
path: '/user2',
breadcrumbName: 'User2',
},
],
},
]}
/>
);