solid-jsx-attributes

Explain SolidJS JSX attribute prefixes, event handling, styles, and refs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill clarifies the usage and behaviors of JSX attributes in SolidJS, helping developers avoid common pitfalls related to attribute merging, event handling, and directives.

Core Features & Use Cases

  • Comprehensive Reference: Details on how SolidJS recognizes and processes various JSX attribute prefixes like attr:, prop:, bool:, on:, and use:.
  • Best Practices: Guidance on combining class and classList, handling style objects, and managing ref assignments.
  • Use Case: A developer needs to implement a component with dynamic classes and custom elements, ensuring correct attribute application to avoid bugs and improve performance.

Quick Start

Use this skill to understand how to correctly assign and manage JSX attributes like ref, style, class, and event handlers in SolidJS components.

Frequently Asked Questions about solid-jsx-attributes

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

FAQPage Schema
How do I use JSX attribute prefixes like attr: and prop: in SolidJS?

SolidJS recognizes specific JSX attribute prefixes like attr:, prop:, and bool: to precisely control how values are applied to DOM elements, ensuring correct attribute versus property assignment for optimal performance.

What's the best way to combine class and classList for dynamic styling in SolidJS?

Combining class and classList in SolidJS allows developers to manage static and conditional classes simultaneously. This approach ensures correct attribute merging and avoids common styling bugs when building reactive UI components.

How do I manage event handling and refs in SolidJS components?

SolidJS manages event handling through the on: prefix and assigns DOM nodes directly via ref attributes. Proper use of these JSX attributes guarantees correct behavior and performance during component rendering and updates.

Does SolidJS require external dependencies to handle custom element attributes?

SolidJS does not require external dependencies for basic custom element attribute handling. The framework natively processes directives and attribute prefixes to ensure seamless application of properties to web components without extra libraries.

Why does my SolidJS component have incorrect attribute application and styling bugs?

Incorrect attribute application in SolidJS often happens when developers misuse style objects, fail to combine class and classList properly, or mismanage ref assignments. Following JSX attribute best practices resolves these rendering and performance issues.