Flexbox-like component for arranging elements in a single row