UIElement Docs Version 0.13.1

🔗 📚 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.

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: