UNPKG

@j4jinxx/overlay

Version:

Minimal Overlay/Backdrop React Component

17 lines (12 loc) 485 B
# Overlay Minimal Overlay/Backdrop React Component ## Install npm i @j4jinxx/overlay ## Import import Overlay from '@j4jinxx/overlay'; ## Props | Name | Type | Default | Description | |----------|:-------|:----------------|:--------| | opened | bool | false | If true, the overlay is open | | color | string | #e0e0e0 | Overlay Color | | onClose | func | ( ) => { } | Callback fired when the component requests to be closed |