Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 2.42 KB

README.md

File metadata and controls

44 lines (33 loc) · 2.42 KB

# Space Component Modal in Typescript

Dialog modal message

made-with-node made-with-react made-with-sass GitHub repo size

A customizable react modal with your message in typescript.

Installation

First you must install React and Typescript, then:

npm install space_component_modal
or
yarn 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