Bootstrap class: .w-auto

    <div>
        <div class="w-auto py-1 bg-primary"></div>
    </div>

Preview

Check .w-auto in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

Tips 💡

More in Bootstrap Sizing