primevue
Version:
PrimeVue is a premium UI library for Vue featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock, wh
137 lines (125 loc) • 3.6 kB
TypeScript
/**
*
* GalleryHeader is a layout slot rendered above the content area, commonly used to host the toolbar (zoom, rotate, fullscreen, etc.).
*
* [Live Demo](https://www.primevue.dev/gallery/)
*
* @module galleryheader
*
*/
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, VNode } from 'vue';
export declare type GalleryHeaderPassThroughOptionType = GalleryHeaderPassThroughAttributes | ((options: GalleryHeaderPassThroughMethodOptions) => GalleryHeaderPassThroughAttributes | string) | string | null | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface GalleryHeaderPassThroughMethodOptions {
/**
* Defines instance.
*/
instance: any;
/**
* Defines valid properties.
*/
props: GalleryHeaderProps;
/**
* 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 GalleryHeaderProps.pt}
*/
export interface GalleryHeaderPassThroughOptions {
/**
* Used to pass attributes to the root's DOM element.
*/
root?: GalleryHeaderPassThroughOptionType;
/**
* Used to manage all lifecycle hooks.
* @see {@link BaseComponent.ComponentHooks}
*/
hooks?: ComponentHooks;
}
/**
* Custom passthrough attributes for each DOM elements.
*/
export interface GalleryHeaderPassThroughAttributes {
[key: string]: any;
}
/**
* Defines valid properties in GalleryHeader component.
*/
export interface GalleryHeaderProps {
/**
* 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.
*/
dt?: DesignToken<any>;
/**
* Used to pass attributes to DOM elements inside the component.
*/
pt?: PassThrough<GalleryHeaderPassThroughOptions>;
/**
* 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;
}
/**
* Defines valid slots in GalleryHeader component.
*/
export interface GalleryHeaderSlots {
/**
* Default content slot.
*/
default(): VNode[];
}
/**
* Defines valid emits in GalleryHeader component.
*/
export interface GalleryHeaderEmitsOptions {}
export declare type GalleryHeaderEmits = EmitFn<GalleryHeaderEmitsOptions>;
/**
* **PrimeVue - GalleryHeader**
*
* _GalleryHeader is a helper component for Gallery component._
*
* [Live Demo](https://www.primevue.dev/gallery/)
* --- ---
* 
*
* @group Component
*
*/
declare const GalleryHeader: DefineComponent<GalleryHeaderProps, GalleryHeaderSlots, GalleryHeaderEmits>;
declare module 'vue' {
export interface GlobalComponents {
GalleryHeader: DefineComponent<GalleryHeaderProps, GalleryHeaderSlots, GalleryHeaderEmits>;
}
}
export default GalleryHeader;