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/overflowimportOverflowfrom'@rc-component/overflow';exportdefault()=>(<Overflowdata={[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 prepublishOnlyThe 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.