import { PassThrough, PassThroughOption } from 'primeng/api'; /** * Defines the size of the avatar. * @group Types */ type AvatarSize = 'normal' | 'large' | 'xlarge'; /** * Defines the shape of the avatar. * @group Types */ type AvatarShape = 'square' | 'circle'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link Avatar.pt} * @group Interface */ interface AvatarPassThroughOptions { /** * Used to pass attributes to the host's DOM element. */ host?: PassThroughOption; /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the label's DOM element. */ label?: PassThroughOption; /** * Used to pass attributes to the icon's DOM element. */ icon?: PassThroughOption; /** * Used to pass attributes to the image's DOM element. */ image?: PassThroughOption; } /** * Defines valid pass-through options in Avatar component. * @see {@link AvatarPassThroughOptions} * * @template I Type of instance. */ type AvatarPassThrough = PassThrough>; export type { AvatarPassThrough, AvatarPassThroughOptions, AvatarShape, AvatarSize };