mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
436aa9ad2d
Co-authored-by: 梁朝飞 <liangchaofei@guokechuzhi.com> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: thinkasany <480968828@qq.com>
16 lines
343 B
TypeScript
16 lines
343 B
TypeScript
import React from 'react';
|
|
import { AppstoreOutlined, BarsOutlined } from '@ant-design/icons';
|
|
import { Segmented } from 'antd';
|
|
|
|
const Demo: React.FC = () => (
|
|
<Segmented
|
|
vertical
|
|
options={[
|
|
{ value: 'List', icon: <BarsOutlined /> },
|
|
{ value: 'Kanban', icon: <AppstoreOutlined /> },
|
|
]}
|
|
/>
|
|
);
|
|
|
|
export default Demo;
|