1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use crate::component::{interactive::button_paper::button_paper, text_paper::text_paper}; use raui_core::prelude::*; pub fn text_button_paper(context: WidgetContext) -> WidgetNode { let WidgetContext { idref, key, props, .. } = context; let wrap_props = props.read_cloned_or_default::<WrapBoxProps>(); widget! { (#{key} | {idref.cloned()} button_paper: {props.clone()} { content = (#{"wrap"} wrap_box: {wrap_props} { content = (#{"text"} text_paper: {props.clone()}) }) }) } }