Files
hinode/content/en/blog/bootstrap.md
2022-12-26 11:46:49 +01:00

22 KiB

author, title, date, description, tags, thumbnail, photoCredits, photoSource
author title date description tags thumbnail photoCredits photoSource
Mark Dumay Bootstrap Components 2022-12-26 Overview of available Bootstrap components
bootstrap
img/notepad.jpg <a href="https://unsplash.com/@frederickjmedina">Frederick Medina</a> <a href="https://unsplash.com/photos/PdfRE-xB--s">Unsplash</a>

Bootstrap provides several UI components out of the box. The Hinode theme uses several of these components for rendering, such as the navigation menu and scrollspy. A few components are made available as Hugo shortcode, see [Custom Shortcodes]({{< ref "custom-shortcodes" >}} "Custom Shortcodes"). You can embed the Bootstrap components themselves too. The below paragraphs demonstrate each of them.

Accordion

Accordion Item #1

This is the first item's accordion body. It is shown by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.

Accordion Item #2

This is the second item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.

Accordion Item #3

This is the third item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.

Alerts

A simple primary alert—check it out!
A simple secondary alert—check it out!
A simple success alert—check it out!
A simple danger alert—check it out!
A simple warning alert—check it out!
A simple info alert—check it out!
A simple light alert—check it out!
A simple dark alert—check it out!

Badge

Headings

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New
Example heading New

Buttons

Notifications 4

Positioned

Inbox 99+ unread messages

Breadcrumb

  1. Home
  1. Home
  2. Library
  1. Home
  2. Library
  3. Data

Buttons

Primary Secondary Success Danger Warning Info Light Dark Link

Button Group

Left Middle Right

Card

...
Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Go somewhere

{{< carousel ratio="16x9" class="col-sm-12 col-lg-8 mx-auto" >}} {{< img src="img/coffee.jpg" caption="slide 1" >}} {{< img src="img/phone.jpg" caption="slide 2" >}} {{< img src="img/dunes.jpg" caption="slide 3" >}} {{< /carousel >}}

Close button

Collapse

Link with href Button with data-bs-target

Some placeholder content for the collapse component. This panel is hidden by default but revealed when the user activates the relevant trigger.

Dropdowns

Single button

Split button

List group

Modal

Launch demo modal

Navbar

Navs & tabs

Offcanvas

Link with href Button with data-bs-target
Offcanvas
Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.

Pagination

Placeholders

Popovers

Click to toggle popover

Progress

Scrollspy

Navbar

Navbar

First heading

...

Second heading

...

Third heading

...

Fourth heading

...

Fifth heading

...

Nested nav

Item 1

...

Item 1-1

...

Item 1-2

...

Item 2

...

Item 3

...

Item 3-1

...

Item 3-2

...

List group

Item 1

...

Item 2

...

Item 3

...

Item 4

...

Simple anchors

Item 1

...

Item 2

...

Item 3

...

Item 4

...

Item 5

...

Spinners

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Toasts

Show live toast

Bootstrap 11 mins ago
Hello, world! This is a toast message.

Tooltips

Placeholder text to demonstrate some inline links with tooltips. This is now just filler, no killer. Content placed here just to mimic the presence of real text. And all that just to give you an idea of how tooltips would look when used in real-world situations. So hopefully you've now seen how these tooltips on links can work in practice, once you use them on your own site or project.