Socket
Socket
Sign inDemoInstall

@trbl/react-modal

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trbl/react-modal

America's next top modal.


Version published
Weekly downloads
15
increased by66.67%
Maintainers
2
Weekly downloads
 
Created
Source

NPM Bundle Size Supported by TRBL

React Modal

America's next top modal.

Quick Start

Installation

$ yarn add @trbl/react-modal

Composition

  import React from 'react';
  import { asModal, ModalContainer, ModalProvider, ModalToggler } from '@trbl/react-modal';

  const MyModal = asModal(() => return <div>My Modal</div>, 'demo-modal');

  const App = () => {
    return (
      <ModalProvider>
        <ModalToggler slug="demo-modal">
          ...
        </ModalToggler>
        <MyModal />
        <ModalContainer />
      <ModalProvider>
    )
  }

  export default App;

Demo

To demo locally, clone the repo and

$ yarn
$ yarn dev
$ open http://localhost:3000

Documentation

All available props can be found via the references below:

Contribution

Help us, or let us help you help us.

License

MIT Copyright (c) TRBL, LLC

Keywords

FAQs

Package last updated on 24 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc