0.2.5 • Published 2 years ago

@axelr/react-js-modal v0.2.5

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

React Js Modal Component

Installation

NPM

npm install --save @axelr/react-js-modal

Optional props

NameTypeDescription
modalBackgroundColorstring (optional)A string representing the background color of the modal.
modalTextColorstring (optional)A string representing the text color of the modal.
modalMinWidthstring (optional)A string representing the max width. By default the max width is not set.
modalMaxWidthstring (optional)A string representing the max width. By default the max width is 600px.
closeButtonboolean (optional)By default the close button is true.
childrenReact.ReactNode (optional)String or JSX that will be rendered in the modal.

Usage

import React, { useState } from 'react';
import { Modal } from '@axelr/react-js-modal';

const myComponent = () => {
  return (
    <>
        <Modal
            modalBackgroundColor={"#97ba16"}
            modalTextColor={"#fff"}
            modalMaxWidth={"600px"}
            children={
                <div>
                    <h3>Succes!</h3>
                </div>
            }
        />
    </>
  );
}

export default myComponent;
0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago