MithrilUI.AI.ComponentRegistry (Mithril UI v0.1.2)

View Source

Registry of all Mithril UI components with AI-friendly metadata.

Each component includes:

  • name - Component identifier
  • module - Elixir module path
  • category - Component category (actions, forms, feedback, etc.)
  • description - Brief description of the component
  • use_when - Scenarios when this component is appropriate
  • do_not_use_when - Scenarios when another component is better
  • related - Related components that work well together
  • alternatives - Alternative components for similar use cases
  • variants - Available style variants
  • a11y - Accessibility information

Summary

Functions

Returns all component metadata.

Returns all components in a specific category.

Returns list of all categories.

Returns list of all component names.

Returns component metadata by name.

Functions

all_components()

Returns all component metadata.

by_category(category)

Returns all components in a specific category.

categories()

Returns list of all categories.

component_names()

Returns list of all component names.

get_component(name)

Returns component metadata by name.