| Crates.io | anathema-extras |
| lib.rs | anathema-extras |
| version | 0.1.0 |
| created_at | 2025-06-21 09:07:04.48979+00 |
| updated_at | 2025-06-21 09:07:04.48979+00 |
| description | Additional components for Anathema |
| homepage | https://github.com/togglebyte/anathema-extras |
| repository | https://github.com/togglebyte/anathema-extras |
| max_upload_size | |
| id | 1720654 |
| size | 36,534 |
This crate contains third party components for Anathema.
A single line input field.
builder
.default::<Input>("input", Input::template())
.unwrap();
The input component can be registered as a prototype as well.
builder
.prototype("input", Input::template(), Input::new, InputState::new)
.unwrap();
The following events are provided:
on_enterThe enter key was pressed.
This event publishes anathema_extras::Text, which implements Deref<str>.
on_changeA change was made to the text (insert or remove).
This event publishes anathema_extras::InputChange.
on_focusThe input component gained focus.
This event publishes ().
on_blurThe input component lost focus.
This event publishes ().
clear_on_enterIf the desired outcome is to retain the text when the enter key is pressed set this attribute to false.
@input [clear_on_enter: false]
vstack
@input (on_enter->update_label_a)
@input (on_enter->update_label_b)