Bootstrap class: .w-auto
<div class="w-auto py-1 bg-primary"></div>
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.
You don't need to remember all CSS classes. Just use the Bootstrap Editor instead.
More in Bootstrap Sizing