react-carousel-latest
Version:
A headless, accessible, tree-shakeable React carousel with a compound-component API (and a backwards-compatible CardSlider preset).
21 lines (18 loc) • 1.2 kB
TypeScript
export { B as Blobs, l as Card, m as CardProps, C as CardSlider, a as CardSliderProps, b as CardSliderSlide, c as CardVariant, d as CubeSlide, e as CubeSlider, f as CubeSliderProps, I as ImageSlide, g as ImageSlider, h as ImageSliderProps, S as ShapeOption, i as SlicerSlide, j as SlicerSlider, k as SlicerSliderProps, C as default } from './CubeSlider-CjfZhUTb.js';
import 'react';
/** A two-stop colour palette used to render a card in any design variant. */
interface Palette {
from: string;
to: string;
}
/** Built-in colour palettes (the 1.x gradient set, as colour pairs). */
declare const palettes: Palette[];
/** Build a CSS gradient string from a palette. */
declare function gradientCss({ from, to }: Palette): string;
/** Palettes (optionally shuffled) for assigning one per card. */
declare function getPalettes(randomBackground: boolean): Palette[];
/** Gradient strings, optionally shuffled (convenience over {@link getPalettes}). */
declare function getBackground(randomBackground: boolean): string[];
/** All palettes as ready-made gradient strings. */
declare const gradients: string[];
export { type Palette, getBackground, getPalettes, gradientCss, gradients, palettes };