troll
troll copied to clipboard
gsx: GtkLabel text children
I don't want to deviate from Gtk for now and I'm not sure it's worth it, but here is an idea
<Label>hello</Label>
instead of <Label label="hello"/>
specially for use cases like
<label>
My super title
{'\n'}
Hehe
</label>
with something like widget.label = children.map((child) => child.trim()).join("");
See https://reactnative.dev/docs/text
Or even <Box>label</Box>