Raxol.UI.Universal (Raxol v2.0.1)

View Source

Universal features available across all UI frameworks in Raxol.

These features work regardless of whether you're using React-style, Svelte-style, LiveView, HEEx, or raw terminal access.

Summary

Functions

Universal animation utilities.

Universal context - works like React Context or Svelte Context.

Universal slot system - works across frameworks.

Universal transition system.

Universal action system - works across all frameworks.

Universal theming system.

Functions

animate(element, properties, duration \\ 300)

Universal animation utilities.

handle_universal_event(event, payload \\ %{})

Universal event handling.

provide_context(key, value)

Universal context - works like React Context or Svelte Context.

provide_slot(name, content)

render_universal_slot(name, fallback \\ nil)

(macro)

Universal slot system - works across frameworks.

subscribe_to_events(event)

subscribe_to_events(event, handler)

transition(element, type, opts \\ [])

(macro)

Universal transition system.

use_action(element, action, params \\ [])

(macro)

Universal action system - works across all frameworks.

use_context(key, default \\ nil)

use_theme()

Universal theming system.

with_theme(theme_overrides, list)