• 5
  • avatar
Simple Accordion

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.

This is the second item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes.

This is the third item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes.
<Accordion open={open} toggle={toggle} className="app-accordion accordion-secondary">
  <AccordionItem key="1">
    <AccordionHeader targetId="collapseOne">Accordion Item #1</AccordionHeader>
    <AccordionBody accordionId="collapseOne">
      <strong>This is the first item's accordion body.</strong> 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.
    </AccordionBody>
  </AccordionItem>
  <AccordionItem key="2">
    <AccordionHeader targetId="collapseTwo">Accordion Item #2</AccordionHeader>
    <AccordionBody accordionId="collapseTwo">
      <strong>This is the second item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes.
    </AccordionBody>
  </AccordionItem>
  <AccordionItem key="3">
    <AccordionHeader targetId="collapseThree">Accordion Item #3</AccordionHeader>
    <AccordionBody accordionId="collapseThree">
      <strong>This is the third item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes.
    </AccordionBody>
  </AccordionItem>
</Accordion>
Outline Accordion

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.

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.

This is the third item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes. Any HTML can go within the .accordion-body.
<Accordion open={openOutline} toggle={toggleOutline} className="accordion-outline-secondary">
  <AccordionItem key="outline-1">
    <AccordionHeader targetId="1">Accordion Item #1</AccordionHeader>
    <AccordionBody accordionId="1">
      <strong>This is the first item's accordion body.</strong> 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.
    </AccordionBody>
  </AccordionItem>
  <AccordionItem key="outline-2">
    <AccordionHeader targetId="2">Accordion Item #2</AccordionHeader>
    <AccordionBody accordionId="2">
      <strong>This is the second item's accordion body.</strong> 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.
    </AccordionBody>
  </AccordionItem>
  <AccordionItem key="outline-3">
    <AccordionHeader targetId="3">Accordion Item #3</AccordionHeader>
    <AccordionBody accordionId="3">
      <strong>This is the third item's accordion body.</strong> It is hidden by default, until the
    collapse plugin adds the appropriate classes. Any HTML can go within the `.accordion-body`.
    </AccordionBody>
  </AccordionItem>
</Accordion>
Light Accordion

Placeholder content for this accordion, which is intended to demonstrate the . accordion-flush class. This is the first item's accordion body.

Placeholder content for this accordion, which is intended to demonstrate the . accordion-flush class. This is the first item's accordion body.

Placeholder content for this accordion, which is intended to demonstrate the . accordion-flush class. This is the first item's accordion body.
<Accordion open={openLight} toggle={toggleLight} className="accordion-light-secondary">
  <AccordionItem key="light-1">
    <AccordionHeader targetId="1">Accordion Item #1</AccordionHeader>
    <AccordionBody accordionId="1">
      Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush class</code>. This is the first item's accordion body.
    </AccordionBody>
  </AccordionItem>
  <AccordionItem key="light-2">
    <AccordionHeader targetId="2">Accordion Item #2</AccordionHeader>
    <AccordionBody accordionId="2">
      Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush class</code>. This is the first item's accordion body.
    </AccordionBody>
  </AccordionItem>
  <AccordionItem key="light-3">
    <AccordionHeader targetId="3">Accordion Item #3</AccordionHeader>
    <AccordionBody accordionId="3">
      Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush class</code>. This is the first item's accordion body.
    </AccordionBody>
  </AccordionItem>
</Accordion>
Flush Accordion (No Border)

Placeholder content for this accordion, which is intended to demonstrate the .accordion-flush class. This is the 1 item's accordion body.

Placeholder content for this accordion, which is intended to demonstrate the .accordion-flush class. This is the 2 item's accordion body.

Placeholder content for this accordion, which is intended to demonstrate the .accordion-flush class. This is the 3 item's accordion body.
<Accordion open={openFlush} toggle={toggleFlush} className="accordion-flush accordion-secondary">
  <AccordionItem key="flush-1">
    <AccordionHeader targetId="flush-collapse-1">
      Accordion Item #1
    </AccordionHeader>
    <AccordionBody accordionId="flush-collapse-1">
      Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the 1 item's accordion body.
    </AccordionBody>
  </AccordionItem>
  <AccordionItem key="flush-2">
    <AccordionHeader targetId="flush-collapse-2">
      Accordion Item #2
    </AccordionHeader>
    <AccordionBody accordionId="flush-collapse-2">
      Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the 2 item's accordion body.
    </AccordionBody>
  </AccordionItem>
  <AccordionItem key="flush-3">
    <AccordionHeader targetId="flush-collapse-3">
      Accordion Item #3
    </AccordionHeader>
    <AccordionBody accordionId="flush-collapse-3">
      Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the 3 item's accordion body.
    </AccordionBody>
  </AccordionItem>
</Accordion>
Frequently Asked Questions (Real Example)

Paying your ticket without contesting it can result in a conviction on your driving record. This can have long-lasting consequences such as increased insurance rates, driver's license suspension, employment restrictions, and additional fines imposed by your state's DMV.

Absolutely, tickets recorded on your driving history can result in disqualification from driving commercially or obtaining a commercial driver's license (CDL). They can also disqualify you from driving for ride-sharing services such as Uber or Lyft, which require a clean driving record.

It really depends on the court your ticket landed in. Some courts move faster than others, but on average, it could take about 1-3 months. This is perfectly normal in the legal process.
<Accordion className="accordion-icon" defaultOpen="1">

  <AccordionItem key="0">
    <AccordionHeader targetId="1">
      <i className="ti [object Object] me-1 f-s-20"></i> What happens if I just pay my ticket?
    </AccordionHeader>
    <AccordionBody accordionId="1">
      Paying your ticket without contesting it can result in a conviction on your driving record. This can have long-lasting consequences such as increased insurance rates, driver's license suspension, employment restrictions, and additional fines imposed by your state's DMV.
    </AccordionBody>
  </AccordionItem>

  <AccordionItem key="1">
    <AccordionHeader targetId="2">
      <i className="ti [object Object] me-1 f-s-20"></i> Can this ticket affect my job?
    </AccordionHeader>
    <AccordionBody accordionId="2">
      Absolutely, tickets recorded on your driving history can result in disqualification from driving commercially or obtaining a commercial driver's license (CDL). They can also disqualify you from driving for ride-sharing services such as Uber or Lyft, which require a clean driving record.
    </AccordionBody>
  </AccordionItem>

  <AccordionItem key="2">
    <AccordionHeader targetId="3">
      <i className="ti [object Object] me-1 f-s-20"></i> How long does it take to resolve my case?
    </AccordionHeader>
    <AccordionBody accordionId="3">
      It really depends on the court your ticket landed in. Some courts move faster than others, but on average, it could take about 1-3 months. This is perfectly normal in the legal process.
    </AccordionBody>
  </AccordionItem>
</Accordion>
Left Side Plus Minus Icon

Paying your ticket without contesting it can result in a conviction on your driving record. This can have long-lasting consequences such as increased insurance rates, driver's license suspension, employment restrictions, and additional fines imposed by your state's DMV.

Absolutely, tickets recorded on your driving history can result in disqualification from driving commercially or obtaining a commercial driver's license (CDL). They can also disqualify you from driving for ride-sharing services such as Uber or Lyft, which require a clean driving record.

It really depends on the court your ticket landed in. Some courts move faster than others, but on average, it could take about 1-3 months. This is perfectly normal in the legal process.
<Accordion className="accordion-icon" defaultOpen="1">

  <AccordionItem key="0">
    <AccordionHeader targetId="1">
      <i class='ti ti-message-report me-1 f-s-20'></i> What happens if I just pay my ticket?
    </AccordionHeader>
    <AccordionBody accordionId="1">
      Paying your ticket without contesting it can result in a conviction on your driving record. This can have long-lasting consequences such as increased insurance rates, driver's license suspension, employment restrictions, and additional fines imposed by your state's DMV.
    </AccordionBody>
  </AccordionItem>

  <AccordionItem key="1">
    <AccordionHeader targetId="2">
       Can this ticket affect my job?
    </AccordionHeader>
    <AccordionBody accordionId="2">
      Absolutely, tickets recorded on your driving history can result in disqualification from driving commercially or obtaining a commercial driver's license (CDL). They can also disqualify you from driving for ride-sharing services such as Uber or Lyft, which require a clean driving record.
    </AccordionBody>
  </AccordionItem>

  <AccordionItem key="2">
    <AccordionHeader targetId="3">
       How long does it take to resolve my case?
    </AccordionHeader>
    <AccordionBody accordionId="3">
      It really depends on the court your ticket landed in. Some courts move faster than others, but on average, it could take about 1-3 months. This is perfectly normal in the legal process.
    </AccordionBody>
  </AccordionItem>
</Accordion>
No Icon Indicators

Paying your ticket without contesting it can result in a conviction on your driving record. This can have long-lasting consequences such as increased insurance rates, driver's license suspension, employment restrictions, and additional fines imposed by your state's DMV.

Absolutely, tickets recorded on your driving history can result in disqualification from driving commercially or obtaining a commercial driver's license (CDL). They can also disqualify you from driving for ride-sharing services such as Uber or Lyft, which require a clean driving record.

It really depends on the court your ticket landed in. Some courts move faster than others, but on average, it could take about 1-3 months. This is perfectly normal in the legal process.
<Accordion className="app-accordion accordion-light-danger app-accordion-no-icon" id="accordionnoiconExample">
  <AccordionItem key="0">
    <AccordionHeader targetId="1">
      <button className="accordion-button" type="button" aria-expanded="true" aria-controls="noicon-collapse-1">
        What happens if I just pay my ticket?
      </button>
    </AccordionHeader>
    <AccordionBody accordionId="1">
      Paying your ticket without contesting it can result in a conviction on your driving record. This can have long-lasting consequences such as increased insurance rates, driver's license suspension, employment restrictions, and additional fines imposed by your state's DMV.
    </AccordionBody>
  </AccordionItem>
  <AccordionItem key="1">
    <AccordionHeader targetId="2">
      <button className="accordion-button collapsed" type="button" aria-expanded="false" aria-controls="noicon-collapse-2">
        Can this ticket affect my job?
      </button>
    </AccordionHeader>
    <AccordionBody accordionId="2">
      Absolutely, tickets recorded on your driving history can result in disqualification from driving commercially or obtaining a commercial driver's license (CDL). They can also disqualify you from driving for ride-sharing services such as Uber or Lyft, which require a clean driving record.
    </AccordionBody>
  </AccordionItem>
  <AccordionItem key="2">
    <AccordionHeader targetId="3">
      <button className="accordion-button collapsed" type="button" aria-expanded="false" aria-controls="noicon-collapse-3">
        How long does it take to resolve my case?
      </button>
    </AccordionHeader>
    <AccordionBody accordionId="3">
      It really depends on the court your ticket landed in. Some courts move faster than others, but on average, it could take about 1-3 months. This is perfectly normal in the legal process.
    </AccordionBody>
  </AccordionItem>
</Accordion>
Multi Level Indicators

This is the first item's accordion body. It is shown by default.

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.

This is the second item's accordion body. It is hidden by default.


<Accordion flush className="app-accordion accordion-light-success app-accordion-plus" id="nestingExample">
  <AccordionItem>
    <AccordionHeader targetId="nestingcollapse1">
      This is level one accordion #1
    </AccordionHeader>
    <AccordionBody accordionId="nestingcollapse1">
      
    <Accordion flush className="app-accordion app-accordion-icon-left app-accordion-plus" id="nestingtwoExample0">
      <AccordionItem>
        <AccordionHeader targetId="nestingtwocollapse01">
          This is level two accordion #1
        </AccordionHeader>
        <AccordionBody accordionId="nestingtwocollapse01">
          This is the first item's accordion body. It is shown by default.
        </AccordionBody>
      </AccordionItem>
      <AccordionItem>
        <AccordionHeader targetId="nestingtwocollapse02">
          This is level two accordion #2
        </AccordionHeader>
        <AccordionBody accordionId="nestingtwocollapse02">
          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.
        </AccordionBody>
      </AccordionItem>
    </Accordion>
    </AccordionBody>
  </AccordionItem>
  <AccordionItem>
    <AccordionHeader targetId="nestingcollapse2">
      This is level one accordion #2
    </AccordionHeader>
    <AccordionBody accordionId="nestingcollapse2">
      <p>This is the second item's accordion body. It is hidden by default.</p>
    </AccordionBody>
  </AccordionItem>
</Accordion>