palcarazm/bootstrap5-toggle

Responsive Button Width

Closed this issue · 1 comments

Discussed in #115

Originally posted by chess-server February 20, 2023
On standard bootstrap buttons, you can use btn-block and the button fills the parent element, mainly a div, automatically. When changing screen size or switching device, the button size changes accordingly.

How can I achieve this with the bootstrap5-toggle?

Using the toggle in a

which should have equal width columns leads to unequal width when the toogle is too wide.

Hi! 👋
Thanks for your issue. You are helping to improve Bootstrap 5 toggle.