index.html
The main template file for your component
Overview
File Location
com.yourcompany.component/
├── templates/
│ └── index.html # Main component templateBasic Structure
<div class="{{classes.container}}">
@text("heading", title: "Heading", default: "Welcome")
@richtext("content", title: "Content", default: "Start typing...")
</div>Key Features
Property Insertion
Content Areas
Conditional Rendering
Loops and Collections
Including Partials
Processing Behavior
Per-Instance Processing
Output Location
Common Patterns
Edit Mode Placeholders
Responsive Classes
Component ID
Alpine.js Integration
Examples from Core Components
Simple Component (Typography)
Interactive Component (Button)
Complex Component (Gallery)
Best Practices
Keep It Focused
Use Semantic HTML
Provide Defaults
Consider Accessibility
Related Documentation
Last updated
Was this helpful?

