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

react-layered-dialog

v0.6.1

Published

A flexible and layered dialog component for React

Readme

React Layered Dialog npm bundlephobia license

React 18 useSyncExternalStore 기반 경량 다이얼로그 매니저


Live Demo & Docs

더 자세한 설명과 다양한 사용 예제는 아래 공식 문서 페이지에서 확인하실 수 있습니다.

Live Demo 바로가기


Quick Start

설치

pnpm add react-layered-dialog

기본 사용법

react-layered-dialog는 전역 DialogStorecreateDialogApi로 구성한 dialog 헬퍼를 통해 다이얼로그를 제어합니다.

import { dialog, dialogStore } from '@/lib/dialogs';
import { DialogsRenderer } from 'react-layered-dialog';

function App() {
  const showConfirm = () => {
    // 1. 레지스트리에 등록된 다이얼로그 메서드를 호출
    dialog.confirm({
      title: '알림',
      message: '안녕하세요! React Layered Dialog 입니다.',
    });
  };

  return (
    <>
      <button onClick={showConfirm}>알림 열기</button>

      {/* 2. 앱 최상단에 렌더러 추가 */}
      <DialogsRenderer store={dialogStore} />
    </>
  );
}

전체 설정 과정( DialogStore, createDialogApi 등)에 대한 자세한 내용은 공식 문서를 참고해 주세요.


Why React Layered Dialog?

| Feature | React Layered Dialog | 일반 Modal 라이브러리 | | :--- | :--- | :--- | | 선언적 API | ✅ openDialog('type', props) | ❌ 상태 끌어올리기 또는 복잡한 상태관리 | | 타입 안전성 | ✅ 완전한 TypeScript 지원 | ❌ 제한적 또는 없음 | | 자동 z-index 관리 | ✅ 다중 중첩 시 자동 처리 | ❌ 직접 관리 필요 | | 경량, 의존성 없음 | ✅ 1KB 미만 | ❌ 무거운 의존성 포함 | | 확장성 | ✅ 모든 React 컴포넌트 지원 | ❌ 제한된 템플릿 |


기여하기

이 프로젝트는 Conventional Commits 명세를 따릅니다. 버전 관리 및 배포는 Changesets를 사용합니다. 자세한 내용은 배포 가이드를 참고하세요.