New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-spring-dialog

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-spring-dialog

A simple, accessible and performant dialog component

latest
Source
npmnpm
Version
1.1.15
Version published
Maintainers
1
Created
Source

React Spring Dialog

A simple, accessible and performant Dialog component powered by react-spring.

Features

  • Excelent performances thanks to react-spring.
  • Accessibility ready thanks to the use of focus-trap-react among other things.
  • Easy to style and to configure: no more headaches or hacky things trying to make the Dialog looks like we want.

Install

npm install --save react-spring-dialog

or

yarn add react-spring-dialog

How to use it

import { Dialog } from 'react-spring-dialog'

export function Component() {
  const [isActive, setIsActive] = useState(true)

  return (
    <Dialog isActive={isActive} onClose={() => setIsActive(false)}>
      <div>Dialog content</div>
      <button onClick={() => setIsActive(false)}>CLOSE</button>
    </Dialog>
  )
}

Official documentation

Visit here

Keywords

react

FAQs

Package last updated on 16 Apr 2022

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