Raxol.Playground.PropertyEditor (Raxol v2.0.1)

View Source

Interactive property editor for the component playground.

Provides a user-friendly interface for editing component properties with type validation and real-time preview updates.

Summary

Functions

Gets all available properties for a component with their current values.

Gets property suggestions and help text.

Renders property suggestions for tab completion.

Validates and parses a property value based on its type.

Renders an interactive property editor for a component.

Renders the property editor UI in terminal format.

Functions

get_component_properties(component, current_props)

Gets all available properties for a component with their current values.

get_property_help(component, prop_name)

Gets property suggestions and help text.

get_property_suggestions(component, partial_name \\ "")

Renders property suggestions for tab completion.

parse_property_value(component, prop_name, value_string)

Validates and parses a property value based on its type.

render_editor(component, current_props \\ %{})

Renders an interactive property editor for a component.

render_terminal_editor(component, current_props)

Renders the property editor UI in terminal format.