mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +08:00
ca66d5c592
* docs(breadcrumb): add with params demo * test: add snap
20 lines
277 B
TypeScript
20 lines
277 B
TypeScript
import React from 'react';
|
|
import { Breadcrumb } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Breadcrumb
|
|
items={[
|
|
{
|
|
title: 'Users',
|
|
},
|
|
{
|
|
title: ':id',
|
|
href: '',
|
|
},
|
|
]}
|
|
params={{ id: 1 }}
|
|
/>
|
|
);
|
|
|
|
export default App;
|