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

celuveat-react-modal

v0.0.4

Published

모달을 구현할 수 있는 라이브러리입니다. TypeScript를 지원합니다.

Downloads

6

Readme

Modal 라이브러리

모달을 구현할 수 있는 라이브러리입니다. TypeScript를 지원합니다.

설치 방법

npm install @celuveat/react-modal
yarn add @celuveat/react-modal

사용 방법

Modal 컴포넌트 불러오기

import Modal from '@celuveat/react-modal';

Modal 사용 방법

<Modal
  isModalOpen={/* Modal이 열려 있는지 boolean 값 전달 */}
  closeModal={/* 버튼을 닫기 위한 코드 작성 */}
  showClose={/* optional, 닫기 버튼 활성화 여부 */}
  title={/* optional, Modal 제목 */}
  isMobile={/* optional, 모바일 환경 모달 적용 여부 */}
>
  {/* ReactNode 형태의 자식을 전달 */}
</Modal>

Props

isModalOpen

  • 모달이 열렸는지 닫혔는지 결정하는 상태입니다.
  • boolean 값이 들어갑니다.
  • 기본값은 false입니다.

closeModal

  • 모달을 닫기 위한 함수가 들어갑니다.
  • isModalOpen을 false로 만드는 코드를 내장해야 합니다.

children

  • 모달 내부에 들어갈 컨텐츠입니다.
  • React Element(React Node) 형태로 들어갑니다.

showClose

  • optional한 값으로, default 값은 true입니다.
  • 닫기 버튼을 표기할 것인가에 대한 boolean 값이 들어갑니다.

title

  • optional한 값입니다.
  • 모달에 제목을 달아줍니다.

isMobile

  • optional한 값으로, default 값은 false입니다.
  • 모바일 화견에서의 모달을 표시할 것인지에 대한 boolean 값이 들어갑니다.

사용 예시

import MyModal from "@celuveat/react-modal";
function App() {
  const [isModalOpen, setIsModalOpen] = useState(false);

  const openModal = () => {
    setIsModalOpen(true);
  };

  const closeModal = () => {
    setIsModalOpen(false);
  };

  return (
    <div>
      <button onClick={openModal}>모달을 여는 버튼</button>
      <MyModal
        isModalOpen={isModalOpen}
        closeModal={closeModal}
        title="모바일 모달"
        isMobile
      >
        <div>모달 내용이 들어갑니다.</div>
      </MyModal>
    </div>
  );
}

export default App;