RC

Rc Overflow

rc-overflow

Auto collapse box when overflow

Component Libraries
react
react-component
react-overflow
overflow
antd
ant-design
rc-overflow
Component Libraries
javascript
npm
Stars
64
Weekly
2.4M
Open issues
19
Bundle
~25 kB

Installation

npm install rc-overflow

Code example

import { Button } from "rc-overflow";

export function Example() {
  return (
    <div className="flex gap-2">
      <Button>Primary</Button>
      <Button variant="outline">Secondary</Button>
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by afc163
  • 2.4M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 19 open issues on GitHub

FAQs

Alternatives & similar libraries