π Valence Carousel
Last updated: 2.0.0 (22/01/2024)
Installation & usage
npm install @valence-ui/carouselimport { Carousel, CarouselChildProps } from "@valence-ui/carousel";
function Demo() {
return (
<Carousel>
<CarouselChild
key={i}
/>
</Carousel>
)
}
function CarouselChild(props: CarouselChildProps) {
return (
<div
style={{
backgroundColor: props.isActive ? "red" : undefined,
outline: props.isNearest ? "1px solid red" : undefined,
}}
>
Carousel Child
</div>
)
}Props
Property
Type
Description
Last updated