DR

Drawer

@rc-component/drawer

drawer component for react

Animation
react
react-component
react-drawer
drawer
drawer-menu
rc-drawer-menu
react-drawer-menu
animation
drawer-motion
drawer-animation
Stars
345
Weekly
1.1M
Open issues
4
Bundle
~25 kB

Installation

npm install @rc-component/drawer

Code example

import { motion } from "@rc-component/drawer";

export function Example() {
  return (
    <motion.div
      initial={{ opacity: 0, y: 12 }}
      animate={{ opacity: 1, y: 0 }}
      transition={{ duration: 0.35 }}
    >
      <h2>Animated with Drawer</h2>
    </motion.div>
  );
}

Pros & cons

Pros

  • Actively maintained by 155259966@qq.com
  • 1.1M 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
  • 4 open issues on GitHub

FAQs

Alternatives & similar libraries