primeng
Version:
PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB
33 lines (30 loc) • 899 B
TypeScript
import { PassThroughOption, PassThrough } from 'primeng/api';
/**
* Custom pass-through(pt) options.
* @template I Type of instance.
*
* @see {@link Tooltip.pt}
* @group Interface
*/
interface TooltipPassThroughOptions<I = unknown> {
/**
* Used to pass attributes to the root's DOM element.
*/
root?: PassThroughOption<HTMLDivElement, I>;
/**
* Used to pass attributes to the arrow's DOM element.
*/
arrow?: PassThroughOption<HTMLDivElement, I>;
/**
* Used to pass attributes to the text's DOM element.
*/
text?: PassThroughOption<HTMLDivElement, I>;
}
/**
* Defines valid pass-through options in Tooltip.
* @see {@link TooltipPassThroughOptions}
*
* @template I Type of instance.
*/
type TooltipPassThrough<I = unknown> = PassThrough<I, TooltipPassThroughOptions<I>>;
export type { TooltipPassThrough, TooltipPassThroughOptions };