ant-design/components/breadcrumb/demo/withIcon.md
2022-05-21 22:14:15 +08:00

632 B

order title
1
zh-CN en-US
带有图标的 With an Icon

zh-CN

图标放在文字前面。

en-US

The icon should be placed in front of the text.

import { HomeOutlined, UserOutlined } from '@ant-design/icons';
import { Breadcrumb } from 'antd';
import React from 'react';

const App: React.FC = () => (
  <Breadcrumb>
    <Breadcrumb.Item href="">
      <HomeOutlined />
    </Breadcrumb.Item>
    <Breadcrumb.Item href="">
      <UserOutlined />
      <span>Application List</span>
    </Breadcrumb.Item>
    <Breadcrumb.Item>Application</Breadcrumb.Item>
  </Breadcrumb>
);

export default App;