1.0.3 • Published 2 years ago

standard-react-modal v1.0.3

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

A small but functional React Modal

logo

Install

Make sure to use React V18.2.0 Install using npm install standard-react-modal

Usage

In a React app, use the Modal components: import { Modal } from 'standard-react-modal'

Modal props

NameDescription
texta string containing a text

Make it as a component !

  • in your component folder, create a file for your modal that you will import later as it should be.

  • then, at the top of your component page

import React from "react";

import { Modal } from "standard-react-modal";

  • then, set the props :
const yourText =
    "The text would be placed here";
  • then insert in your function the Modal
<Modal   
    text={yourText}  
        />
  • don't forget to insert onClick={handleModal} in a button for exemple

Submit

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago