react-extension-slot
v0.0.0
Published
A lightweight, plugin-style **extension–slot mechanism** built with **React + TypeScript + Zustand**. This architecture allows you to dynamically register reusable UI components (“extensions”) and render them in specific placeholder areas (“slots”).
Maintainers
Readme
🧩 React Extension Slot System
A lightweight, plugin-style extension–slot mechanism built with React + TypeScript + Zustand.
This architecture allows you to dynamically register reusable UI components (“extensions”) and render them in specific placeholder areas (“slots”).
🚀 Features
- 🧠 Built on Zustand for simple, global state.
- 🧩 Clean separation between slots (where content goes) and extensions (what content appears).
- ⚡ Dynamically register extensions at runtime — no recompilation needed.
- 🔗 Attach extensions to multiple slots.
- 💡 Designed for extensible dashboards, microfrontends, or modular UIs.
🏗️ Core Concepts
| Concept | Description |
|----------|--------------|
| Extension | A reusable React component registered globally, e.g., <UserBadge />, <BillingSummary />. |
| Slot | A placeholder in the UI that can host one or more extensions. |
| Attachment | The mapping between slots and extensions, managed via store actions. |
📦 Local setup
Installation
npm installStart locally
npm run dev