hyva-alpine-component
OfficialBuild CSP-safe Alpine.js components for Hyva
Authorhyva-themes
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps Magento 2 developers craft CSP-safe Alpine.js components for Hyvä themes, ensuring interactivity without violating Content Security Policy.
Core Features & Use Cases
- CSP-safe patterns for Hyvä Alpine components that work with Alpine CSP builds.
- Guidance on secure registration with Alpine.data inside alpine:init and proper escaping of PHP values.
- Use Case: Add a small interactive widget (e.g., tabbed content or modal) to a Hyvä template while maintaining CSP compliance.
Quick Start
Create a CSP-safe Alpine component by defining a named constructor function and registering it with Alpine.data inside an alpine:init listener, using {once: true} and escaping values appropriately.
Dependency Matrix
Required Modules
None requiredComponents
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: hyva-alpine-component Download link: https://github.com/hyva-themes/hyva-ai-tools/archive/main.zip#hyva-alpine-component Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.