1.1.2 • Published 2 years ago

bf-component-modal v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago