@auraxy/react-modal
v2.1.6
Published
A react modal component
Readme
@auraxy/react-modal
pkg.module supported, which means that you can apply tree-shaking in you project
A react modal component
Installation
npm i -S @auraxy/react-modalGlobal 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
- Error
Error: spawn node-sass ENOENT
You may need install node-sass globally,
npm i -g node-sass
