mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-17 23:50:52 +08:00
30 lines
585 B
TypeScript
30 lines
585 B
TypeScript
import React from 'react';
|
|
import { Steps } from 'antd';
|
|
|
|
const content = 'This is a content.';
|
|
const items = [
|
|
{
|
|
title: 'Finished',
|
|
content,
|
|
},
|
|
{
|
|
title: 'In Progress',
|
|
content,
|
|
},
|
|
{
|
|
title: 'Waiting',
|
|
content,
|
|
},
|
|
];
|
|
const App: React.FC = () => (
|
|
<>
|
|
<Steps current={1} titlePlacement="vertical" items={items} ellipsis />
|
|
<br />
|
|
<Steps current={1} percent={60} titlePlacement="vertical" items={items} />
|
|
<br />
|
|
<Steps current={1} percent={80} size="small" titlePlacement="vertical" items={items} />
|
|
</>
|
|
);
|
|
|
|
export default App;
|