ant-design/components/segmented/demo/block.md
vagusX eee3b50727
feat: support icon only in segmented (#35256)
* feat: support icon only with segmented

* fix: lint issue

* chore: update

* test: fix

* test: update snapshot
2022-04-28 19:39:52 +08:00

23 lines
370 B
Markdown

---
order: 1
title:
zh-CN: Block 分段选择器
en-US: Block Segmented
---
## zh-CN
`block` 属性使其适合父元素宽度。
## en-US
`block` property will make the `Segmented` fit to its parent width.
```jsx
import { Segmented } from 'antd';
export default () => (
<Segmented block options={[123, 456, 'longtext-longtext-longtext-longtext']} />
);
```