Raxol.Docs.ComponentCatalog (Raxol v0.3.0)

View Source

Visual component catalog for Raxol documentation.

This module provides a comprehensive catalog of all UI components available in Raxol, with visual examples, code snippets, and interactive customization capabilities.

Features:

  • Categorized components listing
  • Live examples with code snippets
  • Interactive property customization
  • Accessibility information
  • Related components suggestions
  • Search functionality

Summary

Functions

Generates code snippets for a component with the given properties.

Gets accessibility information for a component.

Gets a specific category by ID.

Gets a specific component by ID.

Gets usage statistics for components.

Initializes the component catalog.

Lists all component categories.

Lists all components in a specific category.

Searches for components based on a query.

Suggests related components.

Functions

generate_code_snippet(component_id, props \\ %{})

Generates code snippets for a component with the given properties.

get_accessibility_info(component_id)

Gets accessibility information for a component.

get_category(category_id)

Gets a specific category by ID.

get_component(component_id)

Gets a specific component by ID.

get_usage_stats()

Gets usage statistics for components.

init()

Initializes the component catalog.

list_categories()

Lists all component categories.

list_components(category_id)

Lists all components in a specific category.

render_example(component_id, example_id, custom_props \\ %{})

Renders a component example.

search(query)

Searches for components based on a query.