2.1.6 • Published 3 years ago

@auraxy/react-modal v2.1.6

Weekly downloads
2
License
MIT
Repository
-
Last release
3 years ago

@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

2.1.6

3 years ago

2.1.4

4 years ago

2.1.5

4 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.4

5 years ago