form

Main form generator that creates UI from JSON Schema.

source

generate_form_ui

 generate_form_ui (schema:Dict[str,Any],
                   values:Optional[Dict[str,Any]]=None,
                   show_title:bool=True, show_description:bool=True,
                   compact:bool=False, card_wrapper:bool=True)

Generate a FastHTML form UI from a JSON Schema.

Type Default Details
schema Dict
values Optional None
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
Returns FT