ant-design/components/breadcrumb/demo/overlay.tsx
daisy 7a7ee61fd7
fix(Breadcrumb): items dropdownProps loss (#43151)
* fix(Breadcrumb): items dropdownProps loss

* chore: revert demo

* test: add test
2023-06-23 00:45:47 +08:00

52 lines
875 B
TypeScript

import { Breadcrumb } from 'antd';
import React from 'react';
const menuItems = [
{
key: '1',
label: (
<a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/">
General
</a>
),
},
{
key: '2',
label: (
<a target="_blank" rel="noopener noreferrer" href="http://www.taobao.com/">
Layout
</a>
),
},
{
key: '3',
label: (
<a target="_blank" rel="noopener noreferrer" href="http://www.tmall.com/">
Navigation
</a>
),
},
];
const App: React.FC = () => (
<Breadcrumb
items={[
{
title: 'Ant Design',
},
{
title: <a href="">Component</a>,
},
{
title: <a href="">General</a>,
menu: { items: menuItems },
},
{
title: 'Button',
},
]}
/>
);
export default App;