npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-dropdown-table

v0.0.35

Published

react dropdown table. in this package solved react dropdown table outsite show or parent overfollow issue fix. this package use easily

Downloads

42

Readme

ReactDropdownTable

A customizable React dropdown table component with dynamic positioning and optional arrow icons.

Installation

To install the component, use npm:

npm install react-dropdown-table
yarn add react-dropdown-table

Usage

Here’s how to use the ReactDropdownTable component in your React project:

Quick Start

import ReactDropdownTable from "react-dropdown-table";

<ReactDropdownTable button={"Click Me"} position={true} arrow={true}>
    <ul>
        <li>Hello World</li>
        <li>
            <a href="#">Profile</a>
        </li>
        <li>
            <a href="#">Purchase History</a>
        </li>
        <li>
            <a href="#">Logout</a>
        </li>
    </ul>
</ReactDropdownTable>;

Create Custom Button

const handleCustomButton = () => {
    return <div className="your-custom-button"> Click Here </div>;
};

<ReactDropdownTable button={handleCustomButton()} position={true} arrow={true}>
    {/* Your Dropdown Item */}
</ReactDropdownTable>;

Examples

1.Default

Basic usage with default settings:

<ReactDropdownTable button="Menu">
    <ul>
        <li>Option 1</li>
        <li>Option 2</li>
    </ul>
</ReactDropdownTable>

2. Dropdown Without Arrow

To disable the arrow icon, set arrow={false}:

<ReactDropdownTable button="Click Me" arrow={false}>
    <ul>
        <li>Profile</li>
        <li>Settings</li>
    </ul>
</ReactDropdownTable>

3. Dropdown with Dynamic Positioning

The dropdown adjusts its position based on available screen space:

<ReactDropdownTable button="Dynamic Position" position={true}>
    <ul>
        <li>Top</li>
        <li>Bottom</li>
    </ul>
</ReactDropdownTable>

Properties

| Property | Type | Default | Description | | ------------- | ---------------------- | ----------------- | ------------------------------------------------------------------------------- | | button | ReactElement, string | Required | Text to display on the button that toggles the dropdown. | | position | boolean | true | If true, the dropdown adjusts position (top/bottom) based on available space. | | arrow | boolean | true | If true, an arrow icon will be displayed next to the button text. | | children | ReactNode | Required | The content to display inside the dropdown, such as a list or other elements. | | customStyle | boolean | false | If true then not working default css | | className | string | your-class-name | You can pass your custom class and style update | | maxWidth | string | 180px | You can customize dropdown item width |

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Support

For any questions or issues, please contact me via GitHub. 🚀

Happy Coding! 🚀