gpui-form-component
gpui-form-component provides reusable GPUI runtime components and form shapes
for localized date and file selection and cascading enum choices.
Overview
| Module | Purpose |
|---|---|
infinite_select |
Cascading selects over nested enum trees |
date_picker |
Localized single-date and date-range pickers |
file_picker |
Native file and directory selection |
The derive feature re-exports #[derive(InfiniteSelect)]. The
component-shape feature makes InfiniteSelect<T>, DatePicker,
DateRangePicker, and FilePicker available in
#[gpui_form(component(...))] declarations.
InfiniteSelectState setters update the selection without emitting
InfiniteSelectEvent. Confirmed select changes report the previous and current
values and paths.
Initialize the application gpui-es-fluent resources before using localized
date, file, or annotated infinite-select text. Render application messages
with gpui_es_fluent::localize_message(cx, &message) and type labels with
gpui_es_fluent::localize_label::<MyType>(cx). An explicit localizer uses
i18n.localize_message(&message) and MyType::localize_label(&i18n).