Skip to content

Custom elements

Sad Gabi edited this page Jul 23, 2026 · 3 revisions

You can use HTML custom elements just like in regular HTML.

Best Practices

  • Do not capitalize custom element names to avoid conflicts with Chocola components.
  • Avoid colliding names with Chocola components.
<div>This is a regular HTML element</div>

<MyComponent>This is a Chocola component</MyComponent>

<my-element>This is a custom HTML element</my-element>

Next: text

Previous: text

Introduction

Components

Templates

Styling

Runtime

Architecture

Reference

FAQ

Clone this wiki locally