dynamic-components

Official

Switch Vue views on fly with dynamic components.

AuthorPatternsDev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Rendering different components based on runtime state without switching routes can complicate UIs and degrade user experience. This Skill provides a straightforward pattern to swap components using Vue's <component> element and the is binding, while optionally preserving state with KeepAlive.

Core Features & Use Cases

  • Dynamic component switching using the is attribute on the <component> element to render Home, Feed, History, or other components based on user interaction.
  • State preservation across switches with <KeepAlive>, ensuring user inputs and internal state remain intact when changing views.
  • Clear integration pattern: import component definitions, map them in a tabs-like object, and render the active one with a single binding.

Quick Start

Launch the Vue app and set currentTab to Home (or Feed/History) to see dynamic components render and switch without routing.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dynamic-components
Download link: https://github.com/PatternsDev/skills/archive/main.zip#dynamic-components

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.