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
27 lines (24 loc) • 733 B
TypeScript
import { PassThroughOption, PassThrough } from 'primeng/api';
/**
* Custom passthrough(pt) options.
* @see {@link Motion.pt}
* @group Interface
*/
interface MotionPassThroughOptions<I = unknown> {
/**
* Used to pass attributes to the host's DOM element.
*/
host?: PassThroughOption<HTMLElement, I>;
/**
* Used to pass attributes to the root's DOM element.
*/
root?: PassThroughOption<HTMLElement, I>;
}
/**
* Defines valid pass-through options in Motion component.
* @see {@link MotionPassThroughOptions}
*
* @template I Type of instance.
*/
type MotionPassThrough<I = unknown> = PassThrough<I, MotionPassThroughOptions<I>>;
export type { MotionPassThrough, MotionPassThroughOptions };