form

Main form generator that creates UI from JSON Schema.

source

generate_form_ui


def generate_form_ui(
    schema:Dict, # JSON Schema dictionary
    values:Optional=None, # Optional dictionary of current values
    show_title:bool=True, # Whether to show the schema title
    show_description:bool=True, # Whether to show schema description
    compact:bool=False, # Use compact layout (less spacing)
    card_wrapper:bool=True, # Wrap the form in a card component
)->FT: # FastHTML component containing the generated form UI

Generate a FastHTML form UI from a JSON Schema.