Is there any composable that has no body and only ...
# compose
j
Is there any composable that has no body and only takes modifier? For example if I wanted to create colored square. I know that I can use
Box
but I wonder if there is something just for this use case
f
Box
is perfect for that use case 🙂 You could also use
Spacer
but that does not make semantic sense so I use
Box
🙏 1
a
The
Box
without
content
parameter is exactly for this kind of purpose.
2
🙏 1
☝🏻 1