solid-props

Guide reactive component props in SolidJS to prevent reactivity bugs.

2|2|Updated May 1, 2026
One-click install
npx skills add https://github.com/adamhjk/mvtt --skill solid-props
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solid-props
Source: https://github.com/adamhjk/mvtt/tree/main/.claude/skills/solid-props
Command: npx skills add https://github.com/adamhjk/mvtt --skill solid-props

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It addresses common pitfalls in handling component props within SolidJS, preventing reactivity issues caused by destructuring or aliasing props at component initialization.

Core Features & Use Cases

  • Reactive Props Management: Guides on correctly using props as a reactive proxy in SolidJS components.
  • Advanced Utilities: Provides techniques like mergeProps, splitProps, and children to preserve reactivity.
  • Use Case: When building a complex UI component library, maintain reactive updates by correctly forwarding and managing props, avoiding stale state.

Quick Start

Use the solid-props skill to implement a component that merges default properties with incoming props and forwards relevant attributes to a DOM element.

Frequently Asked Questions about solid-props

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do my SolidJS component props lose reactivity when destructured?

Destructuring SolidJS props breaks reactivity because it removes access to the underlying reactive proxy. You must access properties directly on the props object to ensure consistent reactive updates.

How do I merge default props with incoming props in SolidJS?

To merge default props with incoming props in SolidJS, use the mergeProps utility. This preserves reactivity while applying fallback values for properties not provided by the parent component.

What is the best way to separate props for forwarding in SolidJS?

The splitProps utility is the best way to separate props in SolidJS. It splits the reactive props object into distinct parts, allowing you to forward specific attributes to DOM elements while retaining others.

How do I handle complex children props in SolidJS without losing reactivity?

Use the children helper utility to handle complex children props in SolidJS. It ensures that nested children remain reactive and properly memoized during component composition and rendering.

Can I use this reactive props guidance for building a SolidJS component library?

Yes, this guidance targets developers building complex UI component libraries in SolidJS. It enforces best practices for reactive prop patterns, default handling, and forwarding to maintain bug-free components.

When should I avoid aliasing props in SolidJS components?

You should avoid aliasing props at component initialization in SolidJS. Aliasing breaks the reactive proxy connection, which causes stale state and prevents consistent UI updates when prop values change.