Carousel

Layout

여러 항목을 좌우로 넘겨 보는 캐러셀.

Usage

같은 크기의 카드나 이미지를 한 영역에서 좌우로 넘겨 탐색할 때 사용한다.

import

import

import { Carousel } from '@mildang/design-system/Carousel';

예제를 복사해 쓸 때 필요한 준비

@mildang/styled-system 은 이 저장소에서 Panda 가 생성하는 산출물이다. 저장소 안에서는 turbo run ship 이후 쓸 수 있고, 패키지 소비자는 자기 Panda 산출물이나 다른 레이아웃 수단으로 바꿔야 한다.

API Reference

Carousel Props

Prop

Type

Default

children
필수

ReactNode

지정 안 함

appendDesktopSsrTransformOverride

(cssText: string, containerSelector: string) => string

지정 안 함

autoplay

boolean | CarouselAutoplayOptions

지정 안 함

count

number

지정 안 함

defaultScrollSnaps

number[]

지정 안 함

onApi

(api: EmblaCarouselType) => void

지정 안 함

options

Partial<OptionsType>

지정 안 함

panda

SystemStyleObject

지정 안 함

plugins

CreatePluginType<LoosePluginType, {}>[]

지정 안 함

slideBreakpoints

Partial<Record<"sm" | "md" | "lg" | "xl", { size?: string; gap?: string; maxWidth?: string; }>>

지정 안 함

slideGap

string

지정 안 함

slideMaxWidth

string

지정 안 함

slideSize

string

지정 안 함

ssr

number[]

지정 안 함

예제