React Bootstrap 5 회전식 슬라이더 만들기
6425 단어 tutorialwebdevreactbootstrap5
Install & Setup Vite + React + Typescript + Bootstrap 5
React Bootstrap 5 회전식 슬라이더
import React from 'react';
import Carousel from 'react-bootstrap/Carousel';
export default function Home() {
return (
<div>
<Carousel>
<Carousel.Item>
<img
className=" w-100 img-fluid"
src="https://cdn.pixabay.com/photo/2014/11/04/21/14/feather-517181__340.jpg"
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 img-fluid"
src="https://cdn.pixabay.com/photo/2014/11/04/21/14/feather-517181__340.jpg"
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 img-fluid"
src="https://cdn.pixabay.com/photo/2014/11/04/21/14/feather-517181__340.jpg"
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>
</div>
);
}
또한 읽기
Install NextUI in React with Typescript
Reference
이 문제에 관하여(React Bootstrap 5 회전식 슬라이더 만들기), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/frontendshape/create-react-bootstrap-5-carousel-slider-2aon텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)