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//! # fn example() {
11//!
12//! # let _ =
13//! Container! {
14//! child_start = zng::label::Label!("Name", "name-field");
15//! child_spacing = 5;
16//! child = TextInput! {
17//! id = "name-field";
18//! txt = var_from("");
19//! };
20//! }
21//! # ; }
22//! ```
23//!
24//! # Full API
25//!
26//! See [`zng_wgt_text_input::label`] for the full widget API.
27
28pub use zng_wgt_text_input::label::{DefaultStyle, Label, style_fn};