schema-form
Builds Combobox FormField List NumberInput SchemaForm SegmentedControl TagInput TextInput


The code that drew it
A still frame holds a repeating animation at its first frame and a one-shot at its last, because a still of a moving thing is not reproducible. Run the gallery to review motion.
fn schema_form(window: &mut Window, cx: &mut App) -> AnyElement {
if !cx.has_global::<SceneSchemaForm>() {
let form = cx.new(|cx| SchemaForm::new("scene.schema", scene_schema(), window, cx));
form.update(cx, |form, cx| {
// An error the host returned rather than one the form derived:
// only the host knows this path is outside the workspace.
form.set_error("path", "That path is outside the workspace.", cx);
});
cx.set_global(SceneSchemaForm { form });
}
let form = cx.global::<SceneSchemaForm>().form.clone();
let theme = cx.theme().clone();
stack(&theme).w(px(520.0)).child(form).into_any_element()
}