.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
These are 5 separate standard accordions, each using a different heading level from h2 to h6.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
These accordions use generic accent color modifier classes (e.g., .red
, .teal
) that override the default heading styles. All color-defined accordions use H2 headings for consistency. These are accent colors only - core colors (dark-blue, light-blue, etc.) are reserved for heading-styled accordions.
.red
modifier class. Perfect for warnings or important information.
.jasper
modifier class with a rich red-brown theme.
.tomato
modifier class with a bright orange-red theme.
.coral
modifier class with a warm coral theme.
.sienna
modifier class with an earthy brown theme.
.bronze
modifier class with a metallic bronze theme.
.brown
modifier class with a rich brown theme.
.khaki
modifier class with a muted olive theme.
.olive
modifier class with an olive green theme.
.green
modifier class with a deep green theme.
.teal
modifier class with a teal blue-green theme.
.aquamarine
modifier class with a blue-green theme.
.ocean
modifier class with an ocean blue theme.
.blue
modifier class with a medium blue theme.
.midnight
modifier class with a deep midnight blue theme.
.purple
modifier class with a deep purple theme.
.amethyst
modifier class with a purple-grey theme.
.violet
modifier class with a purple-pink theme.
.blossom
modifier class with a pink-purple theme.
.pink
modifier class with a soft pink theme.
These accordions work independently - multiple can be open at the same time, similar to dropdown menus.
This feature can be used by following the simple steps outlined in our documentation.
The system requires a modern web browser and JavaScript enabled.
Yes, this feature is completely free for all users.
These accordions work independently - multiple can be open at the same time. Each uses a different heading tag while maintaining the same functionality.
This accordion uses an <h2>
element for its header. This is the most
common and semantically correct choice for main section headings.
This accordion uses an <h3>
element for its header. H3 is appropriate for
subsections within a main section.
This accordion uses an <h4>
element for its header. H4 is suitable for
minor subsections or detailed content areas.
Detailed information goes here.
Additional details and notes.
This accordion uses an <h5>
element for its header. H5 is typically used
for very specific or detailed content sections.
This level is often used for fine-grained content organization.
This accordion uses an <h6>
element for its header. H6 is the smallest
heading level and is used for the most specific content.
H6 is the smallest heading level
Often used for footnotes, fine details, or very specific content areas.
.accordion-flush
class. This is the first item's accordion body..accordion-flush
class. This is the second item's accordion body. Let's imagine
this being filled with some actual content..accordion-flush
class. This is the third item's accordion body. Nothing more
exciting happening here in terms of content, but just filling up the space to make it look, at
least at first glance, a bit more representative of how this would look in a real-world
application..accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
.accordion-body
, though the transition
does limit overflow.
You can add any content here including forms, tables, or other Bootstrap components.
Accordions can use the width and positioning utility classes for flexible layouts. These utilities are responsive and stack on small screens (xs/sm) while applying on medium screens and up.
Use width-*
and float-*
classes for accordions that text should wrap around.
width-40 float-right
classes. Text will wrap around it on medium screens and up.
Lorem ipsum dolor sit amet, consectetur adipiscing 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
width-30 float-left
classes for a narrower left-floated layout.
Lorem ipsum dolor sit amet, consectetur adipiscing 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Use width-*
and position-*
classes within flex containers for precise control over multiple accordions.
width-30 position-left
width-40 position-center
width-25 position-right
Quick combination classes for common use cases.
width-40-right
which combines 40% width with right float positioning.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Width and positioning utilities for accordions adapt automatically:
The .intext
utility class can override heading-based accordion styling. This removes button backgrounds, borders, and moves the toggle arrow to the left while maintaining the normal accordion structure.
.intext
utility class to remove the button styling and borders while maintaining the H2 heading structure. Notice how the toggle arrow appears on the left and the button has no background or borders.
.intext
utility to override the default H3 accordion styling. The font size automatically uses the H3 typography scale while maintaining the minimal intext appearance.
.intext
utility overrides the default H4 accordion styling. The utility provides a clean, minimal appearance with left-aligned toggle arrow while preserving the semantic heading structure.
.intext
utility works with smaller heading levels. The H5 font size is maintained while applying the minimal styling approach typical for detailed content sections.
.intext
utility. Note how it looks very similar to the standard H6 accordion since both use minimal styling, but the .intext
class provides consistent behavior across all heading levels.
.intext
utility allows you to use the appropriate heading level for your document's semantic structure (H2, H3, H4, etc.) while providing a clean, minimal visual presentation. This maintains proper document hierarchy for accessibility tools while achieving the desired minimal styling.