@auraxy/react-modal
TypeScript icon, indicating that this package has built-in type declarations

2.1.6 • Public • Published

@auraxy/react-modal

gzip with dependencies: kb typescript pkg.module

pkg.module supported, which means that you can apply tree-shaking in you project

A react modal component

Installation

npm i -S @auraxy/react-modal

Global name

ReactModal

Interface

See in index.d.ts

Usage

import { Modal, ConfirmModal, Overlay, useShouldRender, GlobalConfig } from '@auraxy/react-modal'

style

For building style, you can use the css or scss file in lib directory.

// scss
import 'node_modules/@auraxy/react-modal/lib/css/index.scss'

// css
import 'node_modules/@auraxy/react-modal/lib/css/index.css'

Or

// scss
@import 'node_modules/@auraxy/react-modal/lib/css/index.scss'

// css
@import 'node_modules/@auraxy/react-modal/lib/css/index.css'

Or, you can build your custom style by copying and editing index.scss

QA

  1. Error Error: spawn node-sass ENOENT

You may need install node-sass globally, npm i -g node-sass

Readme

Keywords

Package Sidebar

Install

npm i @auraxy/react-modal

Weekly Downloads

6

Version

2.1.6

License

MIT

Unpacked Size

68.9 kB

Total Files

11

Last publish

Collaborators

  • auraxy