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-side-sheet-pro

v0.1.8

Published

A flexible React SideSheet component for displaying contextual information.

Readme

react-side-sheet-pro

A flexible React SideSheet component for displaying contextual information.

This panel can slide in from either the left or right side of the screen and is typically triggered by user actions like clicking a row in a table. It supports nested sheets, easy state management, and customizable layouts for a seamless and intuitive user experiences.

👀 Live Preview

Edit react-side-sheet-pro

💡 Use cases

  • Viewing a user's profile or related details
  • Displaying transaction information (e.g., syncs or automation runs)
  • Accessing settings or configurations that don’t require a direct URL
  • Editing or creating records in a form without navigating away from the main view

ℹ️ Compatibility

React 0.14.0 - 19.x.x

✨ Key Features

  • 🚀 Easy Integration: Get started with minimal setup.
  • 📱 Responsive Design: Optimized for all screen sizes.
  • 💪 TypeScript Compatibility: Fully typed for a seamless developer experience.
  • 🔄 Nested Sheets: Support for opening multiple side sheets in a nested manner.
  • 🎨 Customizable: Easily adjust width, styles, and behavior to fit your needs.
  • 👌 State Management Included: Built-in hooks for managing the state of the side sheet.
  • Lightweight and Fast: Minimal dependencies for a quick and smooth user experience.
  • 🧩 Modular Components: Use only the parts you need, like header, content, and footer.

📦 Installation

Install the widget via npm or yarn:

npm install react-side-sheet-pro
# or
yarn add react-side-sheet-pro

⚡️ Quick Start

import React from 'react'
import { SideSheet, useSideSheet, SideElementProps } from 'react-side-sheet-pro'
import 'react-side-sheet-pro/dist/index.css'

const UserDetails: React.FC<SideElementProps & { user: any }> = ({
    user,
    sideId,
    close,
}) => (
    <>
        <SideSheet.Header title={user.name} onClose={() => close(sideId)} />
        <SideSheet.Content className="sidesheet-padding sidesheet-centered">
            <div className="sidesheet-card">
                <p>
                    <strong>ID:</strong> {user.id}
                </p>
                <p>
                    <strong>Name:</strong> {user.name}
                </p>
                <p>
                    <strong>Email:</strong> {user.email}
                </p>
            </div>
        </SideSheet.Content>
    </>
)

export const App = () => {
    const { open } = useSideSheet()

    const handleOpenSideSheet = () => {
        open(
            (props) => (
                <UserDetails
                    {...props}
                    user={{
                        id: 1,
                        name: 'John Doe',
                        email: '[email protected]',
                    }}
                />
            ),
            {
                width: 600,
            }
        )
    }

    return (
        <button onClick={handleOpenSideSheet}>Open Side Sheet</button>
    )
}

// Wrap your app with the SideSheet.Provider to manage side sheets globally

export default () => (
    <SideSheet.Provider>
        <App />
    </SideSheet.Provider>
)

🧩 Compound Components

Sheet.Provider

Sheet provider component that manages the state of all side sheets in your application. It should wrap your main application component.

Sheet.Header

Sheet header component that displays the title and can include custom actions. It also provides custom onClick function for a button to close the sheet.

Header props

| Name | Required | Default | Description | |-------------|----------|-----------|------------------------------------------| | title | yes | | Title of the header. | | onClose | no | undefined | Callback function to close the sheet. | | actions | no | undefined | Custom actions to render in the header. | | className | no | undefined | Custom CSS class for additional styling. |

Sheet.Content

Sheet content component that wraps the main content of the side sheet. Can be styled using custom classes.

Content props

| Name | Required | Default | Description | |-------------|----------|-----------|-------------------------------------------| | children | yes | | Content to display inside the side sheet. | | className | no | undefined | Custom CSS class for additional styling. |

Sheet.Footer

Sheet footer component that can be used to display actions or additional information at the bottom of the side sheet. Can be styled using custom classes.

Footer props

| Name | Required | Default | Description | |-------------|----------|-----------|------------------------------------------| | children | yes | | Content to display inside the footer. | | className | no | undefined | Custom CSS class for additional styling. |

🧪 Testing

cd playground/ && npm start

🌟 Contributing

We welcome contributions! If you'd like to help improve this project, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.