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
191 lines (178 loc) • 5.29 kB
TypeScript
/**
*
* 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<any>;
/**
* Used to pass attributes to DOM elements inside the component.
* @type {CarouselContentPassThroughOptions}
*/
pt?: PassThrough<CarouselContentPassThroughOptions>;
/**
* 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<string | object>;
/**
* 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<CarouselContentEmitsOptions>;
/**
* **PrimeVue - CarouselContent**
*
* _CarouselContent is a helper component for Carousel component._
*
* [Live Demo](https://www.primevue.dev/carousel/)
* --- ---
* 
*
* @group Component
*
*/
declare const CarouselContent: DefineComponent<CarouselContentProps, CarouselContentSlots, CarouselContentEmits>;
declare module 'vue' {
export interface GlobalComponents {
CarouselContent: DefineComponent<CarouselContentProps, CarouselContentSlots, CarouselContentEmits>;
}
}
export default CarouselContent;