-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start HTML and React examples for all components
- Loading branch information
1 parent
6456d1c
commit b80904f
Showing
136 changed files
with
2,510 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<div class="accordion" id="accordionExample"> | ||
<div class="accordion-item"> | ||
<h2 class="accordion-header"> | ||
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> | ||
Accordion Item #1 | ||
</button> | ||
</h2> | ||
<div id="collapseOne" class="accordion-collapse collapse show" data-bs-parent="#accordionExample"> | ||
<div class="accordion-body"> | ||
<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 <code>.accordion-body</code>, though the transition does limit overflow. | ||
</div> | ||
</div> | ||
</div> | ||
<div class="accordion-item"> | ||
<h2 class="accordion-header"> | ||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"> | ||
Accordion Item #2 | ||
</button> | ||
</h2> | ||
<div id="collapseTwo" class="accordion-collapse collapse" data-bs-parent="#accordionExample"> | ||
<div class="accordion-body"> | ||
<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. 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 <code>.accordion-body</code>, though the transition does limit overflow. | ||
</div> | ||
</div> | ||
</div> | ||
<div class="accordion-item"> | ||
<h2 class="accordion-header"> | ||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree"> | ||
Accordion Item #3 | ||
</button> | ||
</h2> | ||
<div id="collapseThree" class="accordion-collapse collapse" data-bs-parent="#accordionExample"> | ||
<div class="accordion-body"> | ||
<strong>This is the third 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. 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 <code>.accordion-body</code>, though the transition does limit overflow. | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
export default function AccordionExample({ | ||
prefix = 't-' // or '' | ||
}) { | ||
return ( | ||
<div className={`${prefix}accordion`} id='accordionExample'> | ||
<div className={`${prefix}accordion-item`}> | ||
<h2 className={`${prefix}accordion-header`}> | ||
<button | ||
className={`${prefix}accordion-button`} | ||
type='button' | ||
data-t-toggle='collapse' | ||
data-t-target='#collapseOne' | ||
aria-expanded='true' | ||
aria-controls='collapseOne' | ||
> | ||
Accordion Item #1 | ||
</button> | ||
</h2> | ||
<div | ||
id='collapseOne' | ||
className={`${prefix}accordion-collapse ${prefix}collapse ${prefix}show`} | ||
data-t-parent='#accordionExample' | ||
> | ||
<div className={`${prefix}accordion-body`}> | ||
<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 <code>.accordion-body</code>, | ||
though the transition does limit overflow. | ||
</div> | ||
</div> | ||
</div> | ||
<div className={`${prefix}accordion-item`}> | ||
<h2 className={`${prefix}accordion-header`}> | ||
<button | ||
className={`${prefix}accordion-button ${prefix}collapsed`} | ||
type='button' | ||
data-t-toggle='collapse' | ||
data-t-target='#collapseTwo' | ||
aria-expanded='false' | ||
aria-controls='collapseTwo' | ||
> | ||
Accordion Item #2 | ||
</button> | ||
</h2> | ||
<div | ||
id='collapseTwo' | ||
className={`${prefix}accordion-collapse ${prefix}collapse`} | ||
data-t-parent='#accordionExample' | ||
> | ||
<div className={`${prefix}accordion-body`}> | ||
<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. 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 <code>.accordion-body</code>, | ||
though the transition does limit overflow. | ||
</div> | ||
</div> | ||
</div> | ||
<div className={`${prefix}accordion-item`}> | ||
<h2 className={`${prefix}accordion-header`}> | ||
<button | ||
className={`${prefix}accordion-button ${prefix}collapsed`} | ||
type='button' | ||
data-t-toggle='collapse' | ||
data-t-target='#collapseThree' | ||
aria-expanded='false' | ||
aria-controls='collapseThree' | ||
> | ||
Accordion Item #3 | ||
</button> | ||
</h2> | ||
<div | ||
id='collapseThree' | ||
className={`${prefix}accordion-collapse ${prefix}collapse`} | ||
data-t-parent='#accordionExample' | ||
> | ||
<div className={`${prefix}accordion-body`}> | ||
<strong>This is the third 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. 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 <code>.accordion-body</code>, | ||
though the transition does limit overflow. | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div class="alert alert-primary" role="alert"> | ||
A simple primary alert—check it out! | ||
</div> | ||
<div class="alert alert-secondary" role="alert"> | ||
A simple secondary alert—check it out! | ||
</div> | ||
<div class="alert alert-success" role="alert"> | ||
A simple success alert—check it out! | ||
</div> | ||
<div class="alert alert-danger" role="alert"> | ||
A simple danger alert—check it out! | ||
</div> | ||
<div class="alert alert-warning" role="alert"> | ||
A simple warning alert—check it out! | ||
</div> | ||
<div class="alert alert-info" role="alert"> | ||
A simple info alert—check it out! | ||
</div> | ||
<div class="alert alert-light" role="alert"> | ||
A simple light alert—check it out! | ||
</div> | ||
<div class="alert alert-dark" role="alert"> | ||
A simple dark alert—check it out! | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
export default function AlertsExample({ | ||
prefix = 't-' // or '' | ||
}) { | ||
return ( | ||
<> | ||
<div className={`${prefix}alert ${prefix}alert-primary`} role='alert'> | ||
A simple primary alert—check it out! | ||
</div> | ||
<div className={`${prefix}alert ${prefix}alert-secondary`} role='alert'> | ||
A simple secondary alert—check it out! | ||
</div> | ||
<div className={`${prefix}alert ${prefix}alert-success`} role='alert'> | ||
A simple success alert—check it out! | ||
</div> | ||
<div className={`${prefix}alert ${prefix}alert-danger`} role='alert'> | ||
A simple danger alert—check it out! | ||
</div> | ||
<div className={`${prefix}alert ${prefix}alert-warning`} role='alert'> | ||
A simple warning alert—check it out! | ||
</div> | ||
<div className={`${prefix}alert ${prefix}alert-info`} role='alert'> | ||
A simple info alert—check it out! | ||
</div> | ||
<div className={`${prefix}alert ${prefix}alert-light`} role='alert'> | ||
A simple light alert—check it out! | ||
</div> | ||
<div className={`${prefix}alert ${prefix}alert-dark`} role='alert'> | ||
A simple dark alert—check it out! | ||
</div> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<span class="badge text-bg-primary">Primary</span> | ||
<span class="badge text-bg-secondary">Secondary</span> | ||
<span class="badge text-bg-success">Success</span> | ||
<span class="badge text-bg-danger">Danger</span> | ||
<span class="badge text-bg-warning">Warning</span> | ||
<span class="badge text-bg-info">Info</span> | ||
<span class="badge text-bg-light">Light</span> | ||
<span class="badge text-bg-dark">Dark</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export default function BadgesExample({ | ||
prefix = 't-' // or '' | ||
}) { | ||
return ( | ||
<> | ||
<span className={`${prefix}badge ${prefix}text-bg-primary`}>Primary</span> | ||
<span className={`${prefix}badge ${prefix}text-bg-secondary`}>Secondary</span> | ||
<span className={`${prefix}badge ${prefix}text-bg-success`}>Success</span> | ||
<span className={`${prefix}badge ${prefix}text-bg-danger`}>Danger</span> | ||
<span className={`${prefix}badge ${prefix}text-bg-warning`}>Warning</span> | ||
<span className={`${prefix}badge ${prefix}text-bg-info`}>Info</span> | ||
<span className={`${prefix}badge ${prefix}text-bg-light`}>Light</span> | ||
<span className={`${prefix}badge ${prefix}text-bg-dark`}>Dark</span> | ||
</> | ||
) | ||
} |
Oops, something went wrong.