1.2.3 • Published 3 years ago

kj-modal-component v1.2.3

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

kj-modal-component

A simple component to display a modal, styled with Bootstrap. Nothing fancy.

Installation

Just run npm install kj-modal-component and you're all set.

Usage

  1. Import

import { Modal, useModal } from "kj-modal-component"

  1. Initiate the modal state

const { isShowing, toggle } = useModal()

  1. Insert the component where you want in your JSX code

<Modal header="Information header" msg="Message you want to display" isShowing={isShowing} hide={toggle} />

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago