/** * * SidebarTrigger component - part of the headless Sidebar compound component family. * * @module sidebartrigger * */ import type { DefineComponent, DesignToken, EmitFn, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; import { VNode } from 'vue'; export declare type SidebarTriggerPassThroughOptionType = SidebarTriggerPassThroughAttributes | ((options: SidebarTriggerPassThroughMethodOptions) => SidebarTriggerPassThroughAttributes | string) | string | null | undefined; /** * Custom passthrough(pt) option method. */ export interface SidebarTriggerPassThroughMethodOptions { /** * Defines instance. */ instance: any; /** * Defines valid properties. */ props: SidebarTriggerProps; /** * 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 SidebarTriggerProps.pt} */ export interface SidebarTriggerPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: SidebarTriggerPassThroughOptionType; /** * Used to manage all lifecycle hooks. * @see {@link BaseComponent.ComponentHooks} */ hooks?: ComponentHooks; } /** * Custom passthrough attributes for each DOM elements. */ export interface SidebarTriggerPassThroughAttributes { [key: string]: any; } /** * Defines valid properties in SidebarTrigger component. */ export interface SidebarTriggerProps { /** * Target sidebar id to toggle when nested in SidebarLayout with multiple sidebars. */ target?: string; /** * The element or component to render. Defaults to a sensible HTML element. */ as?: string | object | Function; /** * When true, renders the slot content as the root element with merged props. * @defaultValue false */ asChild?: boolean; /** * It generates scoped CSS variables using design tokens for the component. */ dt?: DesignToken; /** * Used to pass attributes to DOM elements inside the component. * @type {SidebarTriggerPassThroughOptions} */ 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 SidebarTrigger component. */ export interface SidebarTriggerSlots { /** * Default slot. * * The `scope` argument is only provided when `asChild` is `true`. In that mode the * consumer must spread `a11yAttrs`, apply `class` and wire `onClick` on the rendered root. * @param {Object} scope - default slot's params. */ default(scope?: { /** * Class name of the root element. */ class: string; /** * Accessibility data attributes to spread on the rendered root. */ a11yAttrs: Record; /** * Click handler that toggles the inherited Sidebar or target SidebarLayout entry. * @param {Event} event - Browser event. */ onClick: (event: Event) => void; }): VNode[]; } /** * Defines valid emits in SidebarTrigger component. */ export interface SidebarTriggerEmitsOptions {} export declare type SidebarTriggerEmits = EmitFn; /** * **PrimeVue - SidebarTrigger** * * _SidebarTrigger component - part of the headless Sidebar compound component family._ * * @group Component * */ declare const SidebarTrigger: DefineComponent; declare module 'vue' { export interface GlobalComponents { SidebarTrigger: DefineComponent; } } export default SidebarTrigger;