UNPKG

soda-material

Version:

A component library that may follow [material design 3](https://m3.material.io/components) (a.k.a. material you)

24 lines (23 loc) 776 B
/// <reference types="react" /> import './carousel.scss'; export interface Item { key?: React.Key; value: React.ReactNode; label?: React.ReactNode; } /** * [warn]: Incomplete implemention, and only three visiable items is implemented, * make sure the array length is multiple of 3, or it will throw error * @specs https://m3.material.io/components/carousel/specs */ export declare const Carousel: import("react").ForwardRefExoticComponent<{ /** * The array length must be a multiple of 3 */ items: Array<Item>; /** * Shortcut for style.height * @default 12rem */ height?: string | undefined; } & Omit<import("react").HTMLProps<HTMLElement>, "ref" | "height" | "items"> & import("react").RefAttributes<HTMLDivElement>>;