antd#CarouselProps TypeScript Examples

The following examples show how to use antd#CarouselProps. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Carousel.tsx    From condo with MIT License 6 votes vote down vote up
Carousel: React.FC<CarouselProps> = (props) => {
    const { children } = props
    return (
        <DefaultCarousel {...INITIAL_PROPS} {...props}>
            {
                React.Children.map(children, (child, index) => {
                    return (
                        <div key={index}>
                            <SlideContainer>
                                {child}
                            </SlideContainer>
                        </div>
                    )
                })
            }
        </DefaultCarousel>
    )
}
Example #2
Source File: Carousel.tsx    From condo with MIT License 5 votes vote down vote up
INITIAL_PROPS: CarouselProps = {
    dots: false,
    slidesToShow: 4,
    infinite: false,
    arrows: true,
    nextArrow: <ArrowButton type={'next'}/>,
    prevArrow: <ArrowButton type={'prev'}/>,
}