1.1.2 • Published 3 years ago

bf-component-modal v1.1.2

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

BF Component Modal

This module has been created for project 14 of DAJR OpenClassroom formation

Installation

npm install bf-component-modal --save

How to use

import React, { useState } from 'react';
import { Modal } from 'bf-component-modal';

function myComponent() {
    const [showModal, setShowModal] = useState(false);
    return (
        <Modal
            title={"My modal header title"}
            description={"My modal body content"}
            show={showModal} // Boolean used to show or not the modal
            onClose={(event) => setShowModal(false)} // Action when modal closing
        />
    );
}

export default myComponent;
1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago