reactjs-action-sheet
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

React.js Action Sheet

https://github.com/nascjoao/reactjs-action-sheet/assets/56273267/a10120e0-091f-4233-b2bb-86396c6296e8

reactjs-action-sheet is built on top of Vaul.

Apple's action sheet is common native a modal view that presents choices related to an action people initiate. This component brings the same experience, but for the web.

Usage

To start using the library, install it in your project:,

npm install reactjs-action-sheet

Use the action sheet in your app.

import ActionSheet, { Action } from "reactjs-action-sheet";

function MyComponent() {
    return (
        <ActionSheet
            actions={[
                <Action>Action 1</Action>,
                <Action>Action 2</Action>,
                <Action destructive>Action 3</Action>,
            ]}
        >
            <button>open</button>
        </ActionSheet>
    );
}

Package Sidebar

Install

npm i reactjs-action-sheet

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

75 kB

Total Files

7

Last publish

Collaborators

  • nascjoao