mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-19 14:53:16 +08:00
34 lines
391 B
Markdown
34 lines
391 B
Markdown
|
---
|
||
|
order: 0
|
||
|
title:
|
||
|
zh-CN: 基本
|
||
|
en-US: Basic
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
最简单的用法。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
The most basic usage.
|
||
|
|
||
|
```jsx
|
||
|
import { Segmented } from 'antd';
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<Segmented options={['Daily', 'Weekly', 'Monthly', 'Quarterly', 'Yearly']} />,
|
||
|
mountNode,
|
||
|
);
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
.code-box-demo {
|
||
|
overflow-x: auto;
|
||
|
}
|
||
|
|
||
|
.code-box-demo .ant-segmented {
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
```
|