Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

popify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

popify

A small library for building popups/notifications in React. Built with simplicity and accessibility in mind.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

Popify 🍾

A small library for building popups/notifications in React. Built with simplicity and accessibility in mind.

stable license

Examples 😲

Edit popify-basic

Installation 🛠

npm install popify

Usage ❓

import React from 'react';

import { Popup } from 'popify';

const App: React.FC = () => {
  return (
    <>
      <main>Hello!</main>

      <Popup
        onClose={() => console.log('onClose')}
        primaryButton={{
          children: 'Thanks!',
          onClick: () => console.log('onClick - Primary'),
        }}
        secondaryButton={{
          children: 'Yeah sure...',
          onClick: () => console.log('onClick - Secondary'),
        }}
      >
        Welcome on our page! You're the 1000th visitor, here's your free iPad!
      </Popup>
    </>
  );
};

export default App;

Props 👀

NameTypeDefault valueDescription
onClose`(() => any)(() => Promise)`undefined
primaryButtonButtonHTMLAttributes<HTMLButtonElement>undefinedObject containing properties passed to primary button.
secondaryButtonButtonHTMLAttributes<HTMLButtonElement>undefinedObject containing properties passed to secondary button.
showCloseIconbooleantrueShows and hides close button.
position`'left''right'`right
styles`FlattenSimpleInterpolationFlattenInterpolation`undefined

Keywords

FAQs

Package last updated on 14 Jun 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