1.0.2 • Published 1 year ago
space-component-modal v1.0.2
����# Space Component Modal in Typescript
Dialog modal message
A customizable react modal with your message in typescript.
Installation
First you must install React and Typescript, then:
npm install space_component_modal
oryarn add space_component_modal
Usage
import React from 'react';
import ReactDOM from 'react-dom/client';
import Dialog from 'space_component_modal';
const SomeComponent = () => {
return (
<div>
<Dialog text="Your Message" showDialog={true} />
</div>
)
};
Props
Label | Type | Required | Default |
---|---|---|---|
text | string | yes | N/A |
showDialog | boolean | no | false |
duration | number | no | 500 |
className | string | no | N/A |
onClose | function | no | N/A |
License
ISC