/** * * ScrollAreaContent wraps the scrollable content inside the viewport. * * @module scrollareacontent * */ 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 ScrollAreaContent passthrough slots. */ export declare type ScrollAreaContentPassThroughOptionType = ScrollAreaContentPassThroughAttributes | ((options: ScrollAreaContentPassThroughMethodOptions) => ScrollAreaContentPassThroughAttributes | string) | string | null | undefined; /** * Custom passthrough(pt) option method. */ export interface ScrollAreaContentPassThroughMethodOptions { /** * Defines instance. */ instance: any; /** * Defines valid properties. */ props: ScrollAreaContentProps; /** * 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 ScrollAreaContentProps.pt} */ export interface ScrollAreaContentPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: ScrollAreaContentPassThroughOptionType; /** * Used to manage all lifecycle hooks. * @see {@link BaseComponent.ComponentHooks} */ hooks?: ComponentHooks; } /** * Custom passthrough attributes for each DOM elements. */ export interface ScrollAreaContentPassThroughAttributes { [key: string]: any; } /** * Defines valid properties in ScrollAreaContent component. */ export interface ScrollAreaContentProps { /** * 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; /** * Used to pass attributes to DOM elements inside the component. * @type {ScrollAreaContentPassThroughOptions} */ 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; } /** * Defines valid slots in ScrollAreaContent component. */ export interface ScrollAreaContentSlots { /** * 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; /** * Root element class produced by the component's `cx('root')` helper. */ class: any; }) => VNode[]; } /** * Defines valid emits in ScrollAreaContent component. */ export interface ScrollAreaContentEmitsOptions {} /** * Defines the emit function type for ScrollAreaContent. */ export declare type ScrollAreaContentEmits = EmitFn; declare const ScrollAreaContent: DefineComponent; declare module 'vue' { export interface GlobalComponents { ScrollAreaContent: DefineComponent; } } export default ScrollAreaContent;