0.4.0 • Published 3 years ago

@emanon/ema-modal v0.4.0

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

ema-modal

Overall

Used to notify a user of some information.

Properties

PropertyAttributeTypeDefaultDescription
fixedfixedbooleanfalseModal will be placed with fixed position.
openedopenedbooleanfalseModal will be visible when true.
persistentpersistentbooleanfalseClicking outside of the element will not deactivate it.

Methods

MethodType
close(): void

Events

EventTypeDescription
closeCustomEvent<{}>Fires when the toast is closed.
request-closeCustomEvent<{ accept: () => void; }>Fires when the toast want to be closed. Call the function passed to accept.

CSS Custom Properties

PropertyDefaultDescription
--ema-c-modal-bgColor"#fff"Modal background color.
--ema-c-modal-duration"300ms"length of transition time.
--ema-c-modal-height"calc(100% - 16px * 2)"Modal height.
--ema-c-modal-maxHeight"auto"Modal max height.
--ema-c-modal-maxWidth"auto"Modal max width.
--ema-c-modal-overlayColor"#80888f"Overlay color.
--ema-c-modal-overlayOpacityOverlay opacity.
--ema-c-modal-radius"8px"Modal border radius.
--ema-c-modal-width"calc(100% - 16px * 2)"Modal width.
0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago