Skip to content

Spacelnvader/space_component_modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published