Collect user input, filter tables via URL query strings (method="get"), or submit changes to @aiui.register_page_action() (method="post"). Every input supports auto_submit=True for instant filtering.
method="get"
@aiui.register_page_action()
method="post"
auto_submit=True
| Python builder | YAML type | Purpose |
type
|---|---|---|
| aiui.form(action, *, children, submit_label, actions, baseline_key, method, update_url) | form | Groups inputs with single submit or named actions and draft tracking |
aiui.form(action, *, children, submit_label, actions, baseline_key, method, update_url)
form
actions
| aiui.filter_bar(action, *, inputs, chips, defaults, reset_label, method, update_url) | filter_bar | Compact auto-applying filter row with active filter chips & Reset button |
aiui.filter_bar(action, *, inputs, chips, defaults, reset_label, method, update_url)
filter_bar
| aiui.button_group(buttons) | button_group | Action buttons (label, action, variant, optional payload) |
aiui.button_group(buttons)
button_group
label
action
variant
| aiui.text_input(label, *, value, placeholder, name, auto_submit) | text_input | Single-line text or search field |
aiui.text_input(label, *, value, placeholder, name, auto_submit)
text_input
| aiui.textarea_input(label, *, value, placeholder, rows, name) | textarea_input | Multi-line text editor |
aiui.textarea_input(label, *, value, placeholder, rows, name)
textarea_input
| aiui.rich_text_input(label, *, name, value, preserved_types, preserve_order, toolbar) | rich_text_input | Lazy ProseMirror rich-text editor with structured JSON output and protected blocks |
aiui.rich_text_input(label, *, name, value, preserved_types, preserve_order, toolbar)
rich_text_input
| aiui.number_input(label, *, value, min_val, max_val, step, name) | number_input | Numeric field with bounds & step |
aiui.number_input(label, *, value, min_val, max_val, step, name)
number_input
| aiui.select_input(label, *, options, value, name, searchable, options_url) | select_input | Single choice dropdown (supports search & remote options_url) |
aiui.select_input(label, *, options, value, name, searchable, options_url)
select_input
options_url
| aiui.multiselect_input(label, *, options, value, name, options_url) | multiselect_input | Searchable multi-select with removable chips |
aiui.multiselect_input(label, *, options, value, name, options_url)
multiselect_input
| aiui.segmented_input(name, options, *, label, value, multi) | segmented_input | Pill toggle buttons (single or multi-select) |
aiui.segmented_input(name, options, *, label, value, multi)
segmented_input
| aiui.radio_input(label, *, options, value, name) | radio_input | Radio group |
aiui.radio_input(label, *, options, value, name)
radio_input
| aiui.checkbox_input(label, *, checked, name) | checkbox_input | Boolean checkbox |
aiui.checkbox_input(label, *, checked, name)
checkbox_input
| aiui.switch_input(label, *, checked, name) | switch_input | Toggle switch |
aiui.switch_input(label, *, checked, name)
switch_input
| aiui.slider_input(label, *, value, min_val, max_val, step, name) | slider_input | Range slider |
aiui.slider_input(label, *, value, min_val, max_val, step, name)
slider_input
| aiui.date_input(label, *, value, name) | date_input | Single date picker |
aiui.date_input(label, *, value, name)
date_input
| aiui.date_range_input(name, *, label, start, end, presets) | date_range_input | Preset buttons (Last 7/30/90 days) + start/end dates |
aiui.date_range_input(name, *, label, start, end, presets)
date_range_input
Last 7/30/90 days
| aiui.time_input(label, *, value, name) | time_input | Time picker |
aiui.time_input(label, *, value, name)
time_input
| aiui.color_picker_input(label, *, value, name) | color_picker_input | Hex color picker |
aiui.color_picker_input(label, *, value, name)
color_picker_input
| aiui.tags_input(label, *, value, name, placeholder) | tags_input | Free-text tag chips |
aiui.tags_input(label, *, value, name, placeholder)
tags_input
| aiui.rating_input(label, *, value=0, max_stars=5, name, readonly, auto_submit) | rating_input | Accessible star rating widget (read-only display or interactive form/RLHF input) |
aiui.rating_input(label, *, value=0, max_stars=5, name, readonly, auto_submit)
rating_input
| aiui.file_upload(label, *, name="files", accept, multiple, max_size_mb, help_text, auto_submit) | file_upload | Drag-and-drop file uploader (uploads via authenticated /api/chat/attachments and resolves safely on the server with aiui.get_uploaded_file(...)) |
aiui.file_upload(label, *, name="files", accept, multiple, max_size_mb, help_text, auto_submit)
file_upload
/api/chat/attachments
aiui.get_uploaded_file(...)
| aiui.file_download(label, *, href, filename, variant) | file_download | Download trigger button |
aiui.file_download(label, *, href, filename, variant)
file_download
<Tip>
With method="get", active filters live in the browser URL (/explorer?status=active&q=api), so bookmarks, refreshes, and shared links keep the exact same view.
/explorer?status=active&q=api
</Tip>