Bootstrap 5 Button Generator

Button Options
Button Preview
Generated Code

                    

Button Options:

  • Select the type of button you want (Primary, Secondary, etc.).

Button Style:

  • Choose the button style (e.g., Primary) which sets the button’s basic appearance.

Button Size:

  • Choose the size of the button (Default, Small, Large).

Outline Button:

  • Toggle the option if you want an outline button (button with no background color).

Apply Gradient:

  • Toggle this if you want a gradient background on the button.

Button Text:

  • Enter the text that you want displayed on the button (e.g., “Click me!”).

Button Icon (Bootstrap Icons):

  • Specify an icon from Bootstrap Icons (e.g., bi-heart).

Icon Position:

  • Choose whether the icon should appear to the left or right of the text.

Border Radius:

  • Set the border radius to control the roundness of the button’s corners (e.g., 4px).

Custom Color:

  • Choose a custom color for the button’s background and border.

Button Preview:

  • View a live preview of what your button will look like as you adjust the settings.

Generated Code:

  • Copy the HTML code generated by the tool to use in your project.

Example generated code: