# Components
- Bootstrap offers a plethora of simple-to-use components that lend your website a more professional appeal instantly.
- You can find extensive documentation on the Bootstrap website (opens new window).
# Deep Dive
We will take a deep dive in the Accordion Component. After this, you should be able to use all the other Bootstrap Components on your own.
# The Accordion Component
One of the commonly used components in modern web design is the Accordion (opens new window). This component provides an effective way to compact a large amount of content into a limited space.
An Accordion component in Bootstrap 5.3 allows you to collapse and expand content sections. You can have multiple content sections in one Accordion, and when one section is opened, the others close automatically.
Here's an example of how you can create an Accordion in Bootstrap:
See the Pen WebDev TMK by Jordi De Roeck (@deroeckjordi) on CodePen.
TIP
At first glance, the Accordion component in Bootstrap may seem complex, but don't be overwhelmed! A great starting point is to copy the code examples from the Bootstrap Documentation (opens new window) and adapt or expand upon them as needed.
# Your turn to explore
Remember, the Accordion is just one of the many useful components offered by Bootstrap. Explore more in the Bootstrap Documentation (opens new window).
# Layout
- Overview (opens new window)
- Containers and responsive breakpoints
- Grid (opens new window)
- Grid system based on twelve columns, five breakpoints and lots of predefined classes
- Utilities for layout (opens new window)
- Utility classes for showing, hiding, aligning, and spacing content
# Content
- Reboot (opens new window)
- A collection of some element-specific CSS changes in a single file, which makes each new webpage look the same (in any browser)
- Typography (opens new window)
- Global settings (default fontstack, font size, ...), headings, blockquotes, ...
- Images (opens new window)
- Responsive images, thumbnails, alignment, ...
- Tables (opens new window)
- Table head options, striped table, bordered/borderless table, responsive table, ...
- Figures (opens new window)
- Display related images and text with the
figure
component
- Display related images and text with the
# Components
- A component is a bundle of reusable HTML, CSS (and sometimes JavaScript) code for common elements, like Alerts (opens new window), Buttons (opens new window), Card (opens new window), Carousel (opens new window), Forms (opens new window), Modal (opens new window), Navbar (opens new window), Tooltips (opens new window), ...
# Utilities
- Bootstrap utility classes for Borders (opens new window), Colors (opens new window), Flex (opens new window), Spacing (opens new window) (margin & padding), Text (opens new window), ...