zng/label.rs
1#![cfg(feature = "text_input")]
2
3//! Label widget and properties.
4//!
5//! The [`Label!`](struct@Label) widget is a text presenter that is focusable, when it receives
6//! focus it can transfer it to another target widget.
7//!
8//! ```
9//! use zng::prelude::*;
10//! # let _scope = APP.defaults();
11//!
12//! # let _ =
13//! Container! {
14//! child_start = zng::label::Label!("Name", "name-field"), 5;
15//! child = TextInput! {
16//! id = "name-field";
17//! txt = var_from("");
18//! };
19//! }
20//! # ;
21//! ```
22//!
23//! # Full API
24//!
25//! See [`zng_wgt_text_input::label`] for the full widget API.
26
27pub use zng_wgt_text_input::label::{DefaultStyle, Label, style_fn};