Most of the time, boolean props on react components are a bad idea. They don't evolve well. More boolean props create impossible states and the component becomes a "thing" that does way too much. Go for string literal union types and slot props (composition) more often than not.
3 reposts51 likes