mix raxol.gen.component (Raxol v2.3.0)

View Source

Generates a new Raxol TEA component module and test.

Usage

mix raxol.gen.component MyComponent

This creates:

  • lib/<app>/components/my_component.ex - Component module with TEA callbacks
  • test/<app>/components/my_component_test.exs - Tests for the component

Options

  • --no-test - Skip generating the test file

Examples

mix raxol.gen.component Sidebar
mix raxol.gen.component StatusBar --no-test