Raxol.Examples.Button (Raxol v0.2.0)

View Source

A sample button component that demonstrates various testable features.

This component includes:

  • Click handling
  • Disabled state
  • Visual styling
  • Responsive layout
  • Theme support

Summary

Types

state()

@type state() :: map()

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.