UNPKG

primereact

Version:

PrimeReact is an open source UI library for React featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime

55 lines (49 loc) 1.72 kB
import * as React from 'react'; import { CSSTransitionProps } from '../csstransition'; type GalleriaPositionType = 'top' | 'bottom' | 'left' | 'right'; interface GalleriaResponsiveOptions { breakpoint: string; numVisible: number; } interface GalleriaItemChangeParams { index: number; } export interface GalleriaProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> { value?: any[]; activeIndex?: number; fullScreen?: boolean; item?(item: any): React.ReactNode; thumbnail?(item: any): React.ReactNode; indicator?(index: number): React.ReactNode; header?: React.ReactNode; footer?: React.ReactNode; numVisible?: number; responsiveOptions?: GalleriaResponsiveOptions[]; showItemNavigators?: boolean; showThumbnailNavigators?: boolean; showItemNavigatorsOnHover?: boolean; changeItemOnIndicatorHover?: boolean; circular?: boolean; autoPlay?: boolean; transitionInterval?: number; caption?(item: any): React.ReactNode; showThumbnails?: boolean; thumbnailsPosition?: GalleriaPositionType; showIndicators?: boolean; showIndicatorsOnItem?: boolean; indicatorsPosition?: GalleriaPositionType; baseZIndex?: number; transitionOptions?: CSSTransitionProps; onItemChange?(e: GalleriaItemChangeParams): void; onShow?(): void; onHide?(): void; children?: React.ReactNode; } export declare class Galleria extends React.Component<GalleriaProps, any> { public show(): void; public hide(): void; public isAutoPlayActive(): boolean; public startSlideShow(): void; public stopSlideShow(): void; public getElement(): HTMLDivElement; }