Square Buttons
React Bootstrap 5 Square Buttons
Responsive React Square Buttons built with Bootstrap 5 & HTML. Disabled button, black, full-width outline, social button, big button, block square button & more.
Basic examples
Square button
A simple square bootstrap button with equal width and height.
Square button sizes
Small, medium, large and extra large square button sizes - mirroring the standard button behavior.
Colors
MDB includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.
Conveying meaning to assistive technologies:
Using color to add meaning only provides a visual indication, which will not be conveyed to
users of assistive technologies – such as screen readers. Ensure that information denoted by
the color is either obvious from the content itself (e.g. the visible text), or is included
through alternative means, such as additional text hidden with the
.visually-hidden
class.
Outline
In need of a button, but not the hefty background colors they bring? Add outline
property to remove all background images and colors on any button.
Sample brands
A few the most popular brands in form of social square buttons.
Disabled state
Make buttons look inactive by adding the disabled
boolean attribute to any
<MDBBtn>
element. Disabled buttons have
pointer-events: none
applied to, preventing hover and active states from
triggering.
Toggle states
Add toggle
property to toggle a button’s active state. If you’re pre-toggling a button, you must manually add the property
.
Social
Combining our icons and custom colors you can create social buttons. Combining our icons and custom colors you can create social buttons. See all available icons in our icons search (check "brands" to filter brand icons).
In the example below, we place a Facebook icon
<MDBIcon fab icon="facebook-f" />
inside the button and set a background-color to#3B5998
(facebook brand color).