primevue-mirror/components/lib/avatargroup/AvatarGroup.d.ts

96 lines
2.4 KiB
TypeScript
Raw Normal View History

2023-03-01 12:55:32 +00:00
/**
*
2024-02-16 09:17:34 +00:00
* A set of Avatars can be displayed together using the AvatarGroup component.
2023-03-01 12:55:32 +00:00
*
* [Live Demo](https://www.primevue.org/accordion/)
*
* @module avatargroup
*
*/
2024-02-16 09:17:34 +00:00
import { VNode } from 'vue';
2023-07-06 11:17:08 +00:00
import { ComponentHooks } from '../basecomponent';
2023-09-05 08:50:46 +00:00
import { PassThroughOptions } from '../passthrough';
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
2022-09-06 12:03:37 +00:00
export declare type AvatarGroupPassThroughOptionType = AvatarGroupPassThroughAttributes | null | undefined;
/**
* Custom passthrough attributes for each DOM elements
*/
export interface AvatarGroupPassThroughAttributes {
[key: string]: any;
}
/**
* Custom passthrough(pt) options.
* @see {@link AvatarGroupProps.pt}
*/
export interface AvatarGroupPassThroughOptions {
/**
2023-08-01 14:01:12 +00:00
* Used to pass attributes to the root's DOM element.
*/
root?: AvatarGroupPassThroughOptionType;
2023-07-06 11:09:01 +00:00
/**
2023-11-07 06:16:39 +00:00
* Used to manage all lifecycle hooks.
2023-07-06 11:09:01 +00:00
* @see {@link BaseComponent.ComponentHooks}
*/
hooks?: ComponentHooks;
}
2023-03-01 12:55:32 +00:00
/**
* Defines valid properties in AvatarGroup component.
*/
export interface AvatarGroupProps {
/**
2023-08-01 14:01:12 +00:00
* Used to pass attributes to DOM elements inside the component.
* @type {AvatarGroupPassThroughOptions}
*/
pt?: PassThrough<AvatarGroupPassThroughOptions>;
2023-09-05 08:50:46 +00:00
/**
* Used to configure passthrough(pt) options of the component.
* @type {PassThroughOptions}
*/
ptOptions?: PassThroughOptions;
2023-05-25 10:07:09 +00:00
/**
* When enabled, it removes component related styles in the core.
* @defaultValue false
*/
unstyled?: boolean;
}
2022-09-06 12:03:37 +00:00
2023-03-01 12:55:32 +00:00
/**
* Defines valid slots in AvatarGroup component.
*/
2024-02-16 09:17:34 +00:00
export interface AvatarGroupSlots {
/**
* Default slot to detect Avatar components.
*/
default(): VNode[];
}
2022-09-06 12:03:37 +00:00
2023-03-01 12:55:32 +00:00
/**
* Defines valid emits in AvatarGroup component.
*/
export interface AvatarGroupEmits {}
2022-09-06 12:03:37 +00:00
2023-03-01 12:55:32 +00:00
/**
* **PrimeVue - AvatarGroup**
*
* _A set of Avatars can be displayed together using the AvatarGroup component._
*
* [Live Demo](https://www.primevue.org/avatargroup/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
*
* @group Component
*/
2022-09-14 11:26:01 +00:00
declare class AvatarGroup extends ClassComponent<AvatarGroupProps, AvatarGroupSlots, AvatarGroupEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
AvatarGroup: GlobalComponentConstructor<AvatarGroup>;
2022-09-06 12:03:37 +00:00
}
}
export default AvatarGroup;