Gem 一覧へ戻る
react-component/overflow(新しいタブで開きます)
主要言語: TypeScript
📦 Auto collapse box util component
- star 数
- 65
- watcher 数
- 6
- fork 数
- 41
- issue 数
- 21
- 最終更新
- 2026/09/07
主要言語: TypeScript
📦 Auto collapse box util component
Part of the Ant Design ecosystem.
📦 Auto-collapse React layout primitive for rendering visible items and overflow indicators.
English | 简体中文
| Area | Support |
|---|---|
| Purpose | Auto-collapse React layout primitive for rendering visible items and overflow indicators. |
| Package | @rc-component/overflow |
| Release | @rc-component/np / rc-np |
npm install @rc-component/overflow
import Overflow from '@rc-component/overflow'; export default () => ( <Overflow data={[1, 2, 3]} renderItem={item => <span>{item}</span>} renderRest={items => <span>+{items.length}</span>} /> );
| Prop | Description |
|---|---|
data |
Items rendered by Overflow. |
renderItem |
Render a visible item. |
renderRest |
Render collapsed overflow items. |
npm install
npm start
npm test
npm run lint
npm run tsc
npm run compileThe dumi site runs at http://localhost:8000.
npm run prepublishOnly
The release flow is handled by @rc-component/np through the rc-np command when the package uses the shared release flow.
@rc-component/overflow is released under the MIT license.