Raxol.Playground.Catalog (Raxol v2.6.0)

View Source

Single source of truth for Raxol's widget catalog.

Provides metadata, demo modules, and code snippets for all playground-ready widgets. Used by the terminal playground, web playground, and SSH playground.

Summary

Functions

Filters components by keyword options.

Returns a component by name.

Returns unique categories in display order.

Returns all playground components.

Types

component()

@type component() :: %{
  name: String.t(),
  module: module(),
  category: atom(),
  description: String.t(),
  complexity: :basic | :intermediate | :advanced,
  tags: [String.t()],
  code_snippet: String.t()
}

Functions

filter(opts \\ [])

@spec filter(keyword()) :: [component()]

Filters components by keyword options.

get_component(name)

@spec get_component(String.t()) :: component() | nil

Returns a component by name.

list_categories()

@spec list_categories() :: [atom()]

Returns unique categories in display order.

list_components()

@spec list_components() :: [component()]

Returns all playground components.