liip/chusho

Inline component

Closed this issue · 4 comments

A component that wraps its children, lie them horizontally with a gap between them.

The gap should be customizable. It would probably be great to have a wrap prop as well.

Maybe this could be combined with the Stack component and use a prop to define the direction… Also wondering how close/redundant it would be compared to a Grid component.

ldgtd commented

I would be wiling to implement this feature but I agree with the last point about the redundant compared to a Grid component. Not sure to see why we would need an inline component. Do you have an use case example ?

Similar to what has been done for the Stack, something that automatically wraps items to add space in-between. I'm currently working on the Grid, I still have to see if I can do something to support this usecase where the "cell" doesn't have any fixed width but fit to the content. I'd rather not start on this until this question is answered.

ldgtd commented

Sound ok to me. We could move this issue to "on hold".

Included in #19