Skip to content

Buttons

Walkthrough · All levels

Use Bootstrap buttons: variants, sizes, states, icons, and common button patterns.

Bootstrap buttons are about clarity and hierarchy. Start by choosing a variant (primary/secondary/etc.), then size/state based on context.

Buttons are interactive controls for actions. This example uses the primary variant to represent a main action.

Use Style to switch between solid, outline, and semantic variants (primary, secondary, success, etc.).

Use Size for compact toolbars or prominent primary actions.

Use Block Level to make a button span the full width of its container (great for mobile layouts).

Use Type to control form behavior. Use button for normal actions, and submit only when the button should submit a form.

Use Disabled when an action is not available. Prefer disabled states over hiding actions when users need to understand what’s possible.

Use Active when a button represents a selected state (for example, toggle buttons or segmented controls).

Continue with other Components tours or return to the Components menu.