/** * * GalleryContent is the area that hosts the gallery items. The active item is rendered centered with overlay positioning, * while inactive items are kept in the DOM but hidden via CSS. Gallery uses the content element as the reference * box for sizing each item. * * [Live Demo](https://www.primevue.dev/gallery/) * * @module gallerycontent * */ 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 GalleryContentPassThroughOptionType = GalleryContentPassThroughAttributes | ((options: GalleryContentPassThroughMethodOptions) => GalleryContentPassThroughAttributes | string) | string | null | undefined; /** * Custom passthrough(pt) option method. */ export interface GalleryContentPassThroughMethodOptions { /** * Defines instance. */ instance: any; /** * Defines valid properties. */ props: GalleryContentProps; /** * 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 GalleryContentProps.pt} */ export interface GalleryContentPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: GalleryContentPassThroughOptionType; /** * Used to manage all lifecycle hooks. * @see {@link BaseComponent.ComponentHooks} */ hooks?: ComponentHooks; } /** * Custom passthrough attributes for each DOM elements. */ export interface GalleryContentPassThroughAttributes { [key: string]: any; } /** * Defines valid properties in GalleryContent component. */ export interface GalleryContentProps { /** * 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. * The slot receives `a11yAttrs` that include the function ref Gallery uses as the reference box for item sizing. * @defaultValue false */ asChild?: boolean | undefined; /** * It generates scoped CSS variables using design tokens for the component. */ dt?: DesignToken; /** * Used to pass attributes to DOM elements inside the component. */ pt?: PassThrough; /** * Used to configure passthrough(pt) options of the component. */ ptOptions?: PassThroughOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false */ unstyled?: boolean; } export interface GalleryContentA11yAttrs extends HTMLAttributes { /** * Function ref to attach to the consumer's root element so Gallery can track the content box. */ ref: (el: Element | null) => void; /** * PrimeVue component identifier. */ 'data-pc-name': 'gallerycontent'; /** * PrimeVue section identifier within the component. */ 'data-pc-section': 'root'; } /** * Defines valid slots in GalleryContent component. */ export interface GalleryContentSlots { /** * Container for `GalleryItem` children. 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 to spread on the consumer's root element so Gallery can capture the content element. */ a11yAttrs: GalleryContentA11yAttrs; }): VNode[]; } /** * Defines valid emits in GalleryContent component. */ export interface GalleryContentEmitsOptions {} export declare type GalleryContentEmits = EmitFn; /** * **PrimeVue - GalleryContent** * * _GalleryContent is a helper component for Gallery component._ * * [Live Demo](https://www.primevue.dev/gallery/) * --- --- * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png) * * @group Component * */ declare const GalleryContent: DefineComponent; declare module 'vue' { export interface GlobalComponents { GalleryContent: DefineComponent; } } export default GalleryContent;