troll icon indicating copy to clipboard operation
troll copied to clipboard

gsx: GtkLabel text children

Open sonnyp opened this issue 2 years ago • 1 comments

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

sonnyp avatar Mar 27 '22 11:03 sonnyp

Or even <Box>label</Box>

sonnyp avatar May 27 '23 19:05 sonnyp