Raxol.Playground (Raxol v2.0.1)

View Source

Interactive component playground for Raxol.

This module provides a live environment for exploring and testing Raxol components, with real-time preview, property editing, and code generation.

Features:

  • Component catalog with categorized examples
  • Live preview with hot-reloading
  • Interactive property editors
  • Code generation and export
  • Theme switching
  • Responsive layout testing

Summary

Functions

Returns a specification to start this module under a supervisor.

Exports the current component code.

Gets the current component catalog.

Gets the current preview.

Launches the playground in the terminal.

Refreshes the preview.

Selects a component for preview.

Switches the theme.

Updates component properties.

Updates component state.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

export_code()

Exports the current component code.

get_catalog()

Gets the current component catalog.

get_preview()

Gets the current preview.

handle_manager_cast(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.

handle_manager_info(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.

launch(opts \\ [])

Launches the playground in the terminal.

refresh_preview()

Refreshes the preview.

select_component(component_id)

Selects a component for preview.

start_link(init_opts \\ [])

switch_theme(theme)

Switches the theme.

update_props(props)

Updates component properties.

update_state(state)

Updates component state.