Skip to content

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

Notifications You must be signed in to change notification settings

stephane-lieumont/Package_React_dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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

Resources

Stars

Watchers

Forks

Packages

No packages published