pub struct FormProps {
pub action: Action,
pub method: Option<HttpMethod>,
pub guard: Option<String>,
pub max_width: Option<FormMaxWidth>,
pub id: Option<String>,
pub enctype: Option<String>,
pub fill: Option<bool>,
}Expand description
Props for Form component.
Fields§
§action: Action§method: Option<HttpMethod>§guard: Option<String>Form guard type. When set, the runtime JS disables the submit button
until the guard condition is met. Value: "number-gt-0" — at least
one number input must have value > 0.
max_width: Option<FormMaxWidth>Optional max-width constraint for the form container.
id: Option<String>Optional HTML id attribute for the rendered <form>. Pair with a
Button’s form prop to submit this form from a button placed outside
it (e.g. in a PageHeader actions slot).
enctype: Option<String>HTML form enctype attribute. Set to "multipart/form-data" for forms
carrying a file input. Without this, the browser default encoding
(application/x-www-form-urlencoded) is used and file inputs are sent
as plain text rather than a multipart body.
fill: Option<bool>When true, the rendered <form> joins the fill-viewport height chain:
it emits flex flex-col h-full min-h-0 [&>*]:flex-1 [&>*]:min-h-0
instead of the default flex flex-wrap layout, stretching its single
child to the full height of the parent so an inner fill Grid resolves
h-full against a real (viewport-constrained) height rather than
content height. Set by the Register layout template
(emit_register_root) so the SelectionPanel footer pins while the
panes scroll independently (256 D-15). Absent/false keeps the default
content-sized form layout — byte-identical to prior renders.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FormProps
impl<'de> Deserialize<'de> for FormProps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for FormProps
impl JsonSchema for FormProps
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more