0.0.21 • Published 1 year ago

popover-react v0.0.21

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago
npm install popover-react
yarn add popover-react

🔨 Usage

Modal

one:

const { update, destroy } = Modal.show(options)

//update(options)
//destroy()
  • maskClosable: boolean
  • duration: number
  • position: 'top' | 'bottom' | 'right' | 'left' | 'center'
  • edge: boolean
  • bg: string
  • contentClassName: string
  • children: ReactNode

two:

<Modal visible={true} maskClosable={true} position={"center"}>
    <div>content</div>
</Modal>
  • visible: boolean
  • maskClosable: boolean
  • duration: number
  • position: 'top' | 'bottom' | 'right' | 'left' | 'center'
  • edge: boolean
  • onClose: Function
  • bg: string
  • contentClassName: string

Toast

import {Toast} from 'popover-react'

const A = () => <span>f</span>

const options = {
    duration: 2000,
    bg: '#ffffff',
    color: 'rgba(0,0,0,.88)',
    size: 14,
    radius: 4,
    className: '',
    position: 'center',
    onHide: () => {}
}

Toast.show(<div>dd</div>, options)
Toast.show(dd)
Toast.show(<A />)

or

import {Toast} from 'popover-react'


const options = {
    visible: false,
    duration: 2000,
    bg: '#ffffff',
    color: 'rgba(0,0,0,.88)',
    size: 14,
    radius: 4,
    className: '',
    position: 'center',
    onHide: () => {}
}
<Toast {...options}>toast can be any type data</Toast>
0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago