|
|
CircleThe .rounded-circle class shapes the image to a circle: |
||||||||||||||
My First Bootstrap PageThis container has a border and some extra padding and margins. My First Bootstrap PageThis container has a dark background color and a white text, and some extra padding and margins. My First Bootstrap PageThis container has a blue background color and a white text, and some extra padding and margins. |
AbbreviationsThe abbr element is used to mark up an abbreviation or acronym: The WHO was founded in 1948. Keyboard InputsTo indicate input that is typically entered via the keyboard, use the kbd element: Use ctrl + p to open the Print dialog box. TypographyLowercased text. Uppercased text. Capitalized text. Contextual ColorsUse the contextual classes to provide "meaning through colors": This text is muted. This text is important. This text indicates success. This text represents some information. This text represents a warning. This text represents danger. Secondary text. This text is dark grey. Default body color (often black). This text is light grey (on white background). This text is white (on white background). |
Opacity Text ColorsAdd 50% opacity for black or white text with the .text-black-50 or .text-white-50 classes: Black text with 50% opacity on white background White text with 50% opacity on black background Contextual BackgroundsUse the contextual background classes to provide "meaning through colors". Background Color with Contrasting Text ColorThis text is important. This text indicates success. This text represents some information. This text represents a warning. This text represents danger. Secondary background color. Dark grey background color. Light grey background color. |
||||||||||||||
Hoverable Dark TableThe .table-hover class adds a hover effect (grey background color) on table rows:
|
||||||||||||||||
Button Styles |
||||||||||||||||
|
Spinner Growing Spinner |
|||||||||||||||
Numbered List GroupUse the .list-group-numbered class to create list items with numbers in front of them:
|
|
DropdownsAdd the .dropstart class next to the dropdown menu to left-align the dropdown. Note that the caret/arrow is added automatically. Also note that we float the dropdown to the right: DropdownsAdd the .dropend class next to the dropdown menu to right-align the dropdown. Note that the caret/arrows is added automatically: |
||||||||||||||
Accordion ExampleNote: The data-bs-parent attribute makes sure that all collapsible elements under the specified parent will be closed when one of the collapsible item is shown.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
||||||||||||||||
Toggleable TabsHOMELorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
Toggleable PillsHOMELorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
Navbar With DropdownThis example adds a dropdown menu in the navbar. |
||||||||||||||
Navbar FormsYou can also include forms inside the navigation bar. |
||||||||||||||||
Carousel ExampleThe following example shows how to create a basic carousel with indicators and controls. |
Fading Modal ExampleClick on the button to open the modal. |
|||||||||||||||
Toast ExampleIn this example, we use a button to show the toast message.
Toast Header
Some text inside the toast body |
My HeadingOffcanvas SidebarOffcanvas is similar to modals, except that it is often used as a sidebar. |
HeadingSome text lorem ipsum. Some text lorem ipsum. Some text lorem ipsum. Right OffcanvasThe .offcanvas-end class positions the offcanvas to the right of the page. |
||||||||||||||
HeadingSome text lorem ipsum. Some text lorem ipsum. Some text lorem ipsum. Dark Offcanvas SidebarUse the .text-bg-dark class to create a dark offcanvas menu. Tip: We have also added the .btn-close-white class to .btn-close, to create a white close button that looks nice with the dark background: |
ShadowsUse the shadow- classes to to add shadows to an element: No shadow
Small shadow
Default shadow
Large shadow
|
|||||||||||||||
Dark Mode DropdownClick on the dropdown menu to see the effect. |
Color PickerTo style an input with type="color" properly, use the .form-control-color class: |
Data List |
||||||||||||||
CheckboxesTo style a checkbox, use a container element with a .form-check class, and add .form-check-label to labels, and .form-check-input to the input with type="checkbox". The form below contains three checkboxes. The first option is checked by default, and the last option is disabled: |
Radio buttonsThe form below contains three radio buttons. The first option is checked by default, and the last option is disabled: |
Toggle SwitchTry to submit the form with and without toggling the switch. |
||||||||||||||
Custom RangeTo create a custom range menu, add the .form-range class to the input element with type="range": |
Form ValidationTry to submit the form. |