@stephane1920/ts-dialog-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i @stephane1920/ts-dialog-react

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

15.5 kB

Total Files

6

Last publish

Collaborators

  • stephane1920