mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-14 08:09:13 +08:00
15 lines
450 B
TypeScript
15 lines
450 B
TypeScript
import React from 'react';
|
|
import { green, red } from '@ant-design/colors';
|
|
import { Flex, Progress } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Flex gap="small" vertical>
|
|
<Progress percent={50} steps={3} />
|
|
<Progress percent={30} steps={5} />
|
|
<Progress percent={100} steps={5} size="small" strokeColor={green[6]} />
|
|
<Progress percent={60} steps={5} strokeColor={[green[6], green[6], red[5]]} />
|
|
</Flex>
|
|
);
|
|
|
|
export default App;
|