UNPKG

soda-material

Version:

A React(>=18) component library that may follow [Material Design 3](https://m3.material.io/components) (a.k.a. Material You)

24 lines (23 loc) 783 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>, "as" | "ref" | "height" | "items"> & import("react").RefAttributes<HTMLDivElement>>;