Open sonnyp opened 2 years ago
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>hello</Label>
<Label label="hello"/>
<label> My super title {'\n'} Hehe </label>
with something like widget.label = children.map((child) => child.trim()).join("");
widget.label = children.map((child) => child.trim()).join("");
See https://reactnative.dev/docs/text
Or even <Box>label</Box>
<Box>label</Box>
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 likewith something like
widget.label = children.map((child) => child.trim()).join("");
See https://reactnative.dev/docs/text