freya::hooks

Function use_editable

Source
pub fn use_editable(
    initializer: impl FnOnce() -> EditableConfig,
    mode: EditableMode,
) -> UseEditable
Expand description

Hook to create an editable text.

For manual creation use UseEditable::new_in_hook.

This is a low level hook and is not expected to be used by the common user, in fact, you might be looking for something like the Input component instead.