Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hunghg255/rc-unmodal

React Component Modal
https://github.com/hunghg255/rc-unmodal

dialog modal radix-ui react vaul

Last synced: about 1 month ago
JSON representation

React Component Modal

Awesome Lists containing this project

README

        



logo


A react component unified modal ✨


NPM Version
NPM Downloads
Minizip
Contributors
License

## Live demo

[Live Demo](https://rc-unmodal.vercel.app/)

## Installation

[![NPM](https://nodei.co/npm/rc-unmodal.png?compact=true)](https://nodei.co/npm/rc-unmodal/)

## Install

```
npm i rc-unmodal@latest
```

## Use

```tsx
import { Modal, MotionModalStackContainer } from 'rc-unmodal';

const BasicModal = () => {
const [open, setOpen] = useState(false);

return (
<>
{
setOpen(true);
}}
>
Open Modal


This is a modal. You can put anything you want in here. And It can be nested.



>
);
};

const App = () => {
return (



);
};
```

### About

Buy Me A Coffee

Gia Hung – [hung.hg](https://hung.thedev.id)