Raxol.UI (Raxol v2.0.1)

View Source

Unified UI framework adapter for Raxol.

Provides a consistent interface across different UI paradigms:

  • React-style components
  • Svelte-style reactive components
  • Phoenix LiveView components
  • HEEx templates
  • Raw terminal buffer operations

Usage

# Choose your preferred framework
use Raxol.UI, framework: :react
use Raxol.UI, framework: :svelte
use Raxol.UI, framework: :liveview
use Raxol.UI, framework: :heex
use Raxol.UI, framework: :raw

Universal Features

Regardless of framework choice, you get:

  • Actions system (use: directive)
  • Transitions and animations
  • Context API
  • Slot system
  • Theme support

Summary

Functions

Convert between different UI frameworks at runtime.

Create a new UI component with the specified framework.

Functions

convert_component(source_framework, target_framework, component_ast)

Convert between different UI frameworks at runtime.

create_component(module, framework, opts \\ [])

Create a new UI component with the specified framework.