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
141 lines (129 loc) • 4 kB
TypeScript
/**
*
* ScrollAreaViewport is the scrollable wrapper inside a ScrollArea.
*
* @module scrollareaviewport
*
*/
import type { DefineComponent, DesignToken, EmitFn, PassThrough } from '@primevue/core';
import type { ComponentHooks } from '@primevue/core/basecomponent';
import type { PassThroughOptions } from 'primevue/passthrough';
import { Component, VNode } from 'vue';
/**
* Custom passthrough(pt) option value type used across ScrollAreaViewport passthrough slots.
*/
export declare type ScrollAreaViewportPassThroughOptionType = ScrollAreaViewportPassThroughAttributes | ((options: ScrollAreaViewportPassThroughMethodOptions) => ScrollAreaViewportPassThroughAttributes | string) | string | null | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface ScrollAreaViewportPassThroughMethodOptions {
/**
* Defines instance.
*/
instance: any;
/**
* Defines valid properties.
*/
props: ScrollAreaViewportProps;
/**
* 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 ScrollAreaViewportProps.pt}
*/
export interface ScrollAreaViewportPassThroughOptions {
/**
* Used to pass attributes to the root's DOM element.
*/
root?: ScrollAreaViewportPassThroughOptionType;
/**
* Used to manage all lifecycle hooks.
* @see {@link BaseComponent.ComponentHooks}
*/
hooks?: ComponentHooks;
}
/**
* Custom passthrough attributes for each DOM elements.
*/
export interface ScrollAreaViewportPassThroughAttributes {
[]: any;
}
/**
* Defines valid properties in ScrollAreaViewport component.
*/
export interface ScrollAreaViewportProps {
/**
* The element or component used to render the root.
* @defaultValue 'DIV'
*/
as?: string | Component | undefined;
/**
* When enabled, root element renders without its own DOM; consumer renders via slot using `a11yAttrs`.
* @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.
* @type {ScrollAreaViewportPassThroughOptions}
*/
pt?: PassThrough<ScrollAreaViewportPassThroughOptions>;
/**
* 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;
}
/**
* Defines valid slots in ScrollAreaViewport component.
*/
export interface ScrollAreaViewportSlots {
/**
* Custom content slot.
* @param {Object} scope - default slot props.
*/
default: (scope: {
/**
* Accessibility attributes that should be spread onto the consumer-rendered root when `asChild` is enabled.
*/
a11yAttrs: Record<string, unknown>;
/**
* Root element class produced by the component's `cx('root')` helper.
*/
class: any;
}) => VNode[];
}
/**
* Defines valid emits in ScrollAreaViewport component.
*/
export interface ScrollAreaViewportEmitsOptions {}
/**
* Defines the emit function type for ScrollAreaViewport.
*/
export declare type ScrollAreaViewportEmits = EmitFn<ScrollAreaViewportEmitsOptions>;
declare const ScrollAreaViewport: DefineComponent<ScrollAreaViewportProps, ScrollAreaViewportSlots, ScrollAreaViewportEmits>;
declare module 'vue' {
export interface GlobalComponents {
ScrollAreaViewport: DefineComponent<ScrollAreaViewportProps, ScrollAreaViewportSlots, ScrollAreaViewportEmits>;
}
}
export default ScrollAreaViewport;