🔗 📚 API Reference
Functions, types, and constants
🔗 Component
Create a Web Component of type Component with reactive properties that extend ComponentProps.
🔗 Signals
Create a signal of type Signal.
- computed creates a Computed signal derived from other signals
- selection creates a Computed signal that updates according to a dynamic CSS selector
- sensor creates a Computed signal that updates according to events
- state creates a State signal
Helper functions:
🔗 Attribute Parsers
Declare how attributes are parsed. Functions returning AttributeParser that will be used to create State signals as reactive properties on the component.
🔗 Signal Initializers
Declare how signals are initialized. Variable of type or function returning SignalInitializer:
- fromContext consumes a context value from nearest ancestor context provider component
- fromDescendant gets a reactive property of a descendant component
- fromDescendants reduces properties of a collection of descendant elements to a single value
- fromEvent creates a computed signal from an event handler on a descendant element
- fromSelector creates a computed signal of descentant elements matching a CSS selector
🔗 Effects
Declare effects of type FxFunction to be applied when signals change: