0.0.9 • Published 12 months ago

@bipce/hrnet_modal_package v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

P14 - Modal package for HrNet

Introduction

HrNet modal package is a package that display a modal containing text with changeable classNames so you can design as you want and a button.

Installation

To install, you can use npm or yarn:

$ npm i @bipce/hrnet_modal_package
$ yarn add @bipce/hrnet_modal_package

Using style props

Each element can be customised by applying your own className. All classNames are optional.

NameDescriptionOptional ?
sectionClassNameAffects the design of the section elementYES
pClassNameAffects the design of the paragraph elementYES
btnClassNameAffects the design of the button elementYES
iconClassNameAffects the design of the icon elementYES
messageIs the message you'll want the user to seeNO
onHandleClickAffects the button action when clickYES

Prerequisites

Before using the modal you'll need to install @heroicons/react in your project.

Example usage

In the example I use it with tailwind, but you can use it with css classes.

import { Modal } from "@bipce/hrnet_modal_package";

<Modal message="Employee is created !" iconClassName="size-5" onHandleClick={handleCloseModal}
       sectionClassName="absolute top-1/2 w-1/2 rounded border border-sky-50 bg-sky-900 p-5 text-center text-lg
                               shadow-lg shadow-slate-950"
       btnClassName="absolute -right-2 -top-3.5 flex items-center rounded-2xl border border-sky-50 bg-red-800 p-1
                           text-sm hover:border-slate-200 hover:bg-red-800"/>
0.0.9

12 months ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago