Raxol.Examples.Demos.IntegratedAccessibilityDemo (Raxol v2.0.1)

View Source

Demo showcasing accessibility features including screen reader support, high contrast mode, and keyboard navigation.

Summary

Functions

Initializes the accessibility demo.

Updates the demo state based on events.

Renders the current view.

Types

t()

@type t() :: %Raxol.Examples.Demos.IntegratedAccessibilityDemo{
  announcements: [String.t()],
  contrast_level: :normal | :high | :highest,
  mode: :menu | :contrast | :screen_reader | :navigation,
  navigation_mode: :standard | :vim,
  screen_reader_enabled: boolean(),
  selected_option: non_neg_integer()
}

Functions

init(opts \\ [])

@spec init(keyword()) :: {:ok, {t(), list()}}

Initializes the accessibility demo.

update(event, state)

@spec update(Raxol.Core.Events.Event.t(), t()) :: {t(), list()}

Updates the demo state based on events.

view(state)

@spec view(t()) :: iolist()

Renders the current view.