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
145 lines (133 loc) • 3.91 kB
TypeScript
/**
*
* SidebarHeader component - part of the headless Sidebar compound component family.
*
* @module sidebarheader
*
*/
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 SidebarHeaderPassThroughOptionType = SidebarHeaderPassThroughAttributes | ((options: SidebarHeaderPassThroughMethodOptions) => SidebarHeaderPassThroughAttributes | string) | string | null | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface SidebarHeaderPassThroughMethodOptions {
/**
* Defines instance.
*/
instance: any;
/**
* Defines valid properties.
*/
props: SidebarHeaderProps;
/**
* 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 SidebarHeaderProps.pt}
*/
export interface SidebarHeaderPassThroughOptions {
/**
* Used to pass attributes to the root's DOM element.
*/
root?: SidebarHeaderPassThroughOptionType;
/**
* Used to manage all lifecycle hooks.
* @see {@link BaseComponent.ComponentHooks}
*/
hooks?: ComponentHooks;
}
/**
* Custom passthrough attributes for each DOM elements.
*/
export interface SidebarHeaderPassThroughAttributes {
[key: string]: any;
}
/**
* Defines valid properties in SidebarHeader component.
*/
export interface SidebarHeaderProps {
/**
* The element or component to render. Defaults to a sensible HTML element.
*/
as?: string | object;
/**
* 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<any>;
/**
* Used to pass attributes to DOM elements inside the component.
* @type {SidebarHeaderPassThroughOptions}
*/
pt?: PassThrough<SidebarHeaderPassThroughOptions>;
/**
* 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 SidebarHeader component.
*/
export interface SidebarHeaderSlots {
/**
* Default slot.
*
* The `scope` argument is only provided when `asChild` is `true`. In that mode
* the consumer must spread `a11yAttrs` and apply `class` on the rendered root.
* @param {Object} scope - default slot's params.
*/
default(scope?: {
/**
* Class name of the root element.
*/
class: string;
/**
* Accessibility data attributes and event handlers to spread on the rendered root in asChild mode.
*/
a11yAttrs: Record<string, any>;
}): VNode[];
}
/**
* Defines valid emits in SidebarHeader component.
*/
export interface SidebarHeaderEmitsOptions {}
export declare type SidebarHeaderEmits = EmitFn<SidebarHeaderEmitsOptions>;
/**
* **PrimeVue - SidebarHeader**
*
* _SidebarHeader component - part of the headless Sidebar compound component family._
*
* @group Component
*
*/
declare const SidebarHeader: DefineComponent<SidebarHeaderProps, SidebarHeaderSlots, SidebarHeaderEmits>;
declare module 'vue' {
export interface GlobalComponents {
SidebarHeader: DefineComponent<SidebarHeaderProps, SidebarHeaderSlots, SidebarHeaderEmits>;
}
}
export default SidebarHeader;