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) • 3.89 kB
TypeScript
/**
*
* SidebarGroupAction component - part of the headless Sidebar compound component family.
*
* @module sidebargroupaction
*
*/
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 SidebarGroupActionPassThroughOptionType = SidebarGroupActionPassThroughAttributes | ((options: SidebarGroupActionPassThroughMethodOptions) => SidebarGroupActionPassThroughAttributes | string) | string | null | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface SidebarGroupActionPassThroughMethodOptions {
/**
* Defines instance.
*/
instance: any;
/**
* Defines valid properties.
*/
props: SidebarGroupActionProps;
/**
* 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 SidebarGroupActionProps.pt}
*/
export interface SidebarGroupActionPassThroughOptions {
/**
* Used to pass attributes to the root's DOM element.
*/
root?: SidebarGroupActionPassThroughOptionType;
/**
* Used to manage all lifecycle hooks.
* @see {@link BaseComponent.ComponentHooks}
*/
hooks?: ComponentHooks;
}
/**
* Custom passthrough attributes for each DOM elements.
*/
export interface SidebarGroupActionPassThroughAttributes {
[key: string]: any;
}
/**
* Defines valid properties in SidebarGroupAction component.
*/
export interface SidebarGroupActionProps {
/**
* 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 {SidebarGroupActionPassThroughOptions}
*/
pt?: PassThrough<SidebarGroupActionPassThroughOptions>;
/**
* 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 SidebarGroupAction component.
*/
export interface SidebarGroupActionSlots {
/**
* Default slot.
*
* The `scope` argument is only provided when `asChild` is `true`. In that mode
* the consumer must apply `class` on the rendered root element.
* @param {Object} scope - default slot's params.
*/
default(scope?: {
/**
* Class name of the root element.
*/
class: string;
}): VNode[];
}
/**
* Defines valid emits in SidebarGroupAction component.
*/
export interface SidebarGroupActionEmitsOptions {}
export declare type SidebarGroupActionEmits = EmitFn<SidebarGroupActionEmitsOptions>;
/**
* **PrimeVue - SidebarGroupAction**
*
* _SidebarGroupAction component - part of the headless Sidebar compound component family._
*
* @group Component
*
*/
declare const SidebarGroupAction: DefineComponent<SidebarGroupActionProps, SidebarGroupActionSlots, SidebarGroupActionEmits>;
declare module 'vue' {
export interface GlobalComponents {
SidebarGroupAction: DefineComponent<SidebarGroupActionProps, SidebarGroupActionSlots, SidebarGroupActionEmits>;
}
}
export default SidebarGroupAction;