1.0.4 • Published 2 years ago

@stephane1920/ts-dialog-react v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Dialog modal message

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

A simple customizable react dialog dialog with message in typescript.
From project 14 OpenClassrooms, react app developer

Projet 14 Openclassroms
Demo

Installation

npm install @stephane1920/ts-dialog-react
or
yarn add @stephane1920/ts-dialog-react

Usage

import React from 'react';
import ReactDOM from 'react-dom/client';
import Dialog from '@stephane1920/ts-dialog-react';

const SomeComponent = () => {
  return (
    <div>
      <Dialog text="message de bienvenue" showDialog={true} />
    </div>
  )
};

Props

LabelTypeRequiredDefault
textstringyesN/A
showDialogbooleannofalse
durationnumberno500
classNamestringnoN/A
onClosefunctionnoN/A

License

ISC