/** * * CarouselContent is a helper component for Carousel component. * * [Live Demo](https://www.primevue.dev/carousel/) * * @module carouselcontent * */ import type { DefineComponent, DesignToken, EmitFn, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; import type { Component, HTMLAttributes, VNode } from 'vue'; export declare type CarouselContentPassThroughOptionType = CarouselContentPassThroughAttributes | ((options: CarouselContentPassThroughMethodOptions) => CarouselContentPassThroughAttributes | string) | string | null | undefined; /** * Custom passthrough(pt) option method. */ export interface CarouselContentPassThroughMethodOptions { /** * Defines instance. */ instance: any; /** * Defines valid properties. */ props: CarouselContentProps; /** * Defines valid attributes. */ attrs: any; /** * Defines parent options. */ parent: any; /** * Defines passthrough(pt) options in global config. */ global: object | undefined; } /** * Custom passthrough(pt) options. * @see {@link CarouselContentProps.pt} */ export interface CarouselContentPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: CarouselContentPassThroughOptionType; /** * Used to manage all lifecycle hooks. * @see {@link BaseComponent.ComponentHooks} */ hooks?: ComponentHooks; } /** * Custom passthrough attributes for each DOM elements */ export interface CarouselContentPassThroughAttributes { [key: string]: any; } /** * Defines valid properties in CarouselContent component. */ export interface CarouselContentProps { /** * Use to change the HTML tag of root element. * @defaultValue DIV */ as?: string | Component | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false */ asChild?: boolean | undefined; /** * It generates scoped CSS variables using design tokens for the component. */ /** * It generates scoped CSS variables using design tokens for the component. */ dt?: DesignToken; /** * Used to pass attributes to DOM elements inside the component. * @type {CarouselContentPassThroughOptions} */ pt?: PassThrough; /** * Used to configure passthrough(pt) options of the component. * @type {PassThroughOptions} */ ptOptions?: PassThroughOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false */ unstyled?: boolean; } /** * Root element attributes forwarded to the consumer when `asChild` is enabled. */ export interface CarouselContentA11yAttrs extends HTMLAttributes { /** * PrimeVue component identifier. */ 'data-pc-name': 'carouselcontent'; /** * PrimeVue section identifier within the component. */ 'data-pc-section': 'root'; /** * Current orientation of the parent carousel. */ 'data-orientation'?: 'horizontal' | 'vertical'; /** * Current alignment of the parent carousel. */ 'data-align'?: 'start' | 'center' | 'end'; /** * Current page of the parent carousel. */ 'data-page'?: number; /** * Indicates whether a swipe gesture is in progress. */ 'data-swiping'?: '' | undefined; /** * Indicates whether `autoSize` is enabled on the parent carousel. */ 'data-autosize'?: '' | undefined; /** * Live region mode of the parent carousel content. */ 'aria-live'?: 'polite' | 'off'; } /** * Defines valid slots in CarouselContent slots. */ export interface CarouselContentSlots { /** * Custom content template. Receives scope props when `asChild` is enabled. * @param {Object} scope - default slot's params. */ default(scope: { /** * Computed class name for the content root. */ class: string | object | Array; /** * Attributes and event handlers to spread on the consumer's root element * so the carousel can observe scroll, pointer and wheel interactions. */ a11yAttrs: CarouselContentA11yAttrs; }): VNode[]; } /** * Defines valid emits in CarouselContent component. */ export interface CarouselContentEmitsOptions {} export declare type CarouselContentEmits = EmitFn; /** * **PrimeVue - CarouselContent** * * _CarouselContent is a helper component for Carousel component._ * * [Live Demo](https://www.primevue.dev/carousel/) * --- --- * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png) * * @group Component * */ declare const CarouselContent: DefineComponent; declare module 'vue' { export interface GlobalComponents { CarouselContent: DefineComponent; } } export default CarouselContent;