solidjs-components

Generate SolidJS components with TypeScript types and lifecycle hooks.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/IlyaGulya/claude-marketplace --skill solidjs-components
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solidjs-components
Source: https://github.com/IlyaGulya/claude-marketplace/tree/main/plugins/solidjs/skills/solidjs-components
Command: npx skills add https://github.com/IlyaGulya/claude-marketplace --skill solidjs-components

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and management of SolidJS components by providing best practices for prop handling, TypeScript integration, and lifecycle management.

Core Features & Use Cases

  • Component Structure: Understand the fundamental function-based nature of SolidJS components.
  • Prop Handling: Learn the correct way to access props to maintain reactivity, use mergeProps for defaults, and splitProps for forwarding.
  • Children Management: Utilize the children() helper for programmatic access to component children.
  • TypeScript Integration: Leverage type definitions for various component types and event handling.
  • Lifecycle Hooks: Implement onMount for setup and onCleanup for resource management.
  • Refs and Directives: Manage DOM element references and apply custom behaviors with use: directives.

Quick Start

Use the solidjs-components skill to create a new SolidJS button component that accepts a 'variant' prop.

Frequently Asked Questions about solidjs-components

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

FAQPage Schema
How do I handle props reactively when building SolidJS components?

To handle props reactively in SolidJS components, access props directly without destructuring them. Use `mergeProps` to apply default values and `splitProps` to isolate or forward specific prop subsets while maintaining their reactivity.

What is the best way to manage component lifecycle events in SolidJS?

The best way to manage SolidJS component lifecycle events is using the `onMount` hook for initial setup actions and the `onCleanup` hook to dispose of resources or clear event listeners, ensuring proper memory management.

How do I programmatically access children in a SolidJS component?

To programmatically access children in a SolidJS component, use the `children()` helper function. This helper resolves child components and elements, allowing you to manipulate them directly within your TypeScript code.

Can I use TypeScript types and custom directives in SolidJS?

Yes, you can use TypeScript for robust type safety and custom directives in SolidJS. Define type definitions for various component types and events, and apply custom behaviors using `use:` directives on DOM elements.

How do I set default props in SolidJS without losing reactivity?

To set default props in SolidJS without losing reactivity, use the `mergeProps` function. This merges default values with incoming props, ensuring that the component updates correctly when prop values change.