Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add Carousel no transition example (#6397)
* Add Carousel no transition example * Fix typo
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import Carousel from 'react-bootstrap/Carousel'; | ||
|
||
function NoTransitionExample() { | ||
return ( | ||
<Carousel slide={false}> | ||
<Carousel.Item> | ||
<img | ||
className="d-block w-100" | ||
src="holder.js/800x400?text=First slide&bg=373940" | ||
alt="First slide" | ||
/> | ||
<Carousel.Caption> | ||
<h3>First slide label</h3> | ||
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p> | ||
</Carousel.Caption> | ||
</Carousel.Item> | ||
<Carousel.Item> | ||
<img | ||
className="d-block w-100" | ||
src="holder.js/800x400?text=Second slide&bg=282c34" | ||
alt="Second slide" | ||
/> | ||
|
||
<Carousel.Caption> | ||
<h3>Second slide label</h3> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | ||
</Carousel.Caption> | ||
</Carousel.Item> | ||
<Carousel.Item> | ||
<img | ||
className="d-block w-100" | ||
src="holder.js/800x400?text=Third slide&bg=20232a" | ||
alt="Third slide" | ||
/> | ||
|
||
<Carousel.Caption> | ||
<h3>Third slide label</h3> | ||
<p> | ||
Praesent commodo cursus magna, vel scelerisque nisl consectetur. | ||
</p> | ||
</Carousel.Caption> | ||
</Carousel.Item> | ||
</Carousel> | ||
); | ||
} | ||
|
||
export default NoTransitionExample; |
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