npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@reaxio/modal

v1.0.6

Published

Modal componmet for Reactjs

Readme

MODAL PORTAL Reaxio

An Introduction

React component, easy, simple, small and improved, this is MODAL PORTAL

When To Use

When requiring users to interact with the application, but without jumping to a new page and interrupting the user's workflow, you can use MODAL PORTAL to create a new floating layer over the current page to get user feedback or display information.

Why Should You Use This?

Many of the components for Reactjs are in a single installation, not only the component you need and in many cases very heavy, but this is ideal for:

  1. Quick and easy loading and small
  2. They don't inject extra javascript and DOM elements into your page, making it slower.
  3. Easy to customize enough to adapt to the design of your site.
  4. Reaxion MODAL PORTAL, takes up very little space, specific and simple for your project.
  5. It can be customized in any way.

📦 Install

npm i @reaxio/modal

🔨 Usage

import {useState} from 'react';
import ModalPortal from "@reaxio/modal";

const App = () => {

	const [state,setState] = useState(false);

	const haldlenModalPortal=()=>{
		setState(!state)
	}


	return (
		<>
			<button onClick={haldlenModalPortal} >Open to Modal Portal</button>
			<ModalPortal 
					state={state} 
					title={<small>Title with small HTML 😬</small>}
					onBtnClose={haldlenModalPortal} 
					>
					<h4>Hi!! Here  Portal! is Okey! 😀 👍🏼</h4>
			</ModalPortal>
		</>
			)
};

✨ API

| Property | Description | Type | Default | | :--------- | :--------------------------------------------------------------------------------------------------------- | :------ | :------ | | state | Whether the modal dialog is visible or not button | Boolean | false | | title | The modal dialog's title | string or HTMLElement | | className | The class name of the container of the modal dialog | string | | | classNameTitle | The class name of the title of the modal dialog | string | | |classNameBody| The class name of the Body of the modal dialog|string|| |classNameFooter| The class name of the Footer of the modal dialog|string|| |classNameBtnOne| The class name of the Button Close of the modal dialog, this button is default in case not config in props, set function onBtnClose for Specify a function that will be called when a user clicks mask|string|| |nameBtn|Set objects for Text of the OK, Cancel ,second and third button, only default Text is Cancel|object| *view Note 1 | |onBtnOkey|Specify a function that will be called when a user clicks the OK button|function(e)| | |onBtnClose|Specify a function that will be called when a user clicks the CANCEL or CLOSE button|function(e)|| |onBtnSecond|Specify a function that will be called when a user clicks the second button|function(e)|| |onBtnThird|Specify a function that will be called when a user clicks the third button|function(e)||


  • Note 1: This props nameBtn value default is {ok:'',cancel:'CLOSE',secondBtn:'',thirdBtn:''}, only the element "cancel" is default text 'CLOSE'.
  • Note 2: If you want to activate the ok, second or third buttons, the element of the button that is assigned in the object is placed props nameBtn.
  • Note 3: All calls to the props methods close the Modal window, the (e) event is a boolean parameter return false, for state Modal is closed.

🔺Examples

Look at our MODAL example in CodeSandox, easy, simple and fast !!!

Thanks for using it. 😃 👊🏼