Raxol.UI.Theming.Selector (Raxol v0.4.0)

View Source

A component for selecting and applying themes.

This module provides:

  • A list-based theme selector UI
  • Theme preview capabilities
  • Theme application functionality
  • Theme management integration

Summary

Types

props()

@type props() :: %{
  optional(:id) => String.t(),
  optional(:on_select) => (String.t() -> any()),
  optional(:width) => integer(),
  optional(:height) => integer(),
  optional(:show_preview) => boolean(),
  optional(:title) => String.t()
}

state()

@type state() :: %{themes: list(), selected_index: integer(), expanded: boolean()}

t()

@type t() :: %{props: props(), state: state()}

Functions

broadcast(msg)

command(cmd)

mount(state)

Callback implementation for Raxol.UI.Components.Base.Component.mount/1.

schedule(msg, delay)

unmount(state)

Callback implementation for Raxol.UI.Components.Base.Component.unmount/1.