UNPKG

@fchh/fcos-suite-ui

Version:

Reusable UI components based on React and TailwindCSS for the Fab City OS Suite (initially funded by the Interfacer EU project).

24 lines (23 loc) 843 B
import { IImage } from '../interfaces/IImage'; interface SliderBaseProps { className?: string; title?: string; fullBleed?: boolean; id?: string; children: ({ activeSlideIndex, setLightboxOpen, }: { activeSlideIndex: number; setLightboxOpen: (isOpen: boolean) => void; }) => React.ReactNode; loop?: boolean; } interface BaseSliderNoLightboxProps extends SliderBaseProps { withLightbox: true; items: IImage[]; } interface BaseSliderWithLightboxProps extends SliderBaseProps { withLightbox?: false; items: unknown[]; } export type BaseSliderProps = BaseSliderNoLightboxProps | BaseSliderWithLightboxProps; export declare function BaseSlider({ className, title, fullBleed, id, children, loop, withLightbox, items, }: BaseSliderProps): import("react/jsx-runtime").JSX.Element; export {};