Skip to content

Struct ui::TextInput

zaun_client::ui::TextInput · Struct

pub struct TextInput(…)

A text field.

pub fn short<impl Into<String>>(custom_id: impl Into<String>) -> Self

One line.

pub fn paragraph<impl Into<String>>(custom_id: impl Into<String>) -> Self

Several lines.

pub const fn length(self, min: u32, max: u32) -> Self

Length bounds.

pub const fn required(self, required: bool) -> Self

Whether it must be filled (default yes).

pub fn placeholder<impl Into<String>>(self, text: impl Into<String>) -> Self

Grey text shown while empty.

Clone, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page