Pages
Introduction
Getting Started
Recipes
Reference
Literals
Arrays
Tuples
Type System
Functions
Modules
Records
Enums
Built-in Types
Constants
Equality
Stores
Routing
Comments
Control Expressions
Components
Properties
Computed Properties
Styling Elements
Connecting Stores
Using Providers
Internal State
Referencing Entities
Global Components
Lifecycle Functions
Directives
JavaScript Interop
Environment Variables
Packages
Components
Components are the main building blocks of the language.
Components have the following features:
- they can be composed inside each other
- they can be connected to stores
- they can subscribe to providers
- styles can be defined for HTML elements inside them
- properties can be defined with types and default values