primevue-mirror/components/lib/floatlabel/FloatLabel.d.ts

129 lines
3.2 KiB
TypeScript
Raw Normal View History

2024-01-30 08:01:40 +00:00
/**
*
2024-02-02 12:40:35 +00:00
* FloatLabel appears on top of the input field when focused.
2024-01-30 08:01:40 +00:00
*
* [Live Demo](https://www.primevue.org/inputtext/)
*
* @module floatlabel
*
*/
2024-02-02 12:40:35 +00:00
import { TransitionProps, VNode } from 'vue';
2024-01-30 08:01:40 +00:00
import { ComponentHooks } from '../basecomponent';
import { PassThroughOptions } from '../passthrough';
import { ClassComponent, DesignToken, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
2024-01-30 08:01:40 +00:00
export declare type FloatLabelPassThroughOptionType = FloatLabelPassThroughAttributes | ((options: FloatLabelPassThroughMethodOptions) => FloatLabelPassThroughAttributes | string) | string | null | undefined;
export declare type FloatLabelPassThroughTransitionType = TransitionProps | ((options: FloatLabelPassThroughMethodOptions) => TransitionProps) | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface FloatLabelPassThroughMethodOptions {
/**
* Defines instance.
*/
instance: any;
/**
* Defines valid properties.
*/
props: FloatLabelProps;
/**
* 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 FloatLabelProps.pt}
*/
export interface FloatLabelPassThroughOptions {
/**
2024-05-15 09:22:27 +00:00
* Used to pass attributes to the roots DOM element.
2024-01-30 08:01:40 +00:00
*/
root?: FloatLabelPassThroughOptionType;
/**
* Used to manage all lifecycle hooks.
* @see {@link BaseComponent.ComponentHooks}
*/
hooks?: ComponentHooks;
}
/**
* Custom passthrough attributes for each DOM elements
*/
export interface FloatLabelPassThroughAttributes {
[key: string]: any;
}
/**
* Defines valid properties in FloatLabel component.
*/
export interface FloatLabelProps {
/**
* It generates scoped CSS variables using design tokens for the component.
*/
dt?: DesignToken<any>;
2024-01-30 08:01:40 +00:00
/**
* Used to pass attributes to DOM elements inside the component.
* @type {FloatLabelPassThroughOptions}
*/
pt?: PassThrough<FloatLabelPassThroughOptions>;
/**
* 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 FloatLabel component.
*/
export interface FloatLabelSlots {
/**
* Default content slot.
*/
default: () => VNode[];
}
/**
* Defines valid emits in FloatLabel component.
*/
export interface FloatLabelEmits {}
/**
* **PrimeVue - FloatLabel**
*
2024-02-02 12:40:35 +00:00
* _FloatLabel appears on top of the input field when focused._
2024-01-30 08:01:40 +00:00
*
* [Live Demo](https://www.primevue.org/inputtext/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
*
* @group Component
*
*/
declare class FloatLabel extends ClassComponent<FloatLabelProps, FloatLabelSlots, FloatLabelEmits> {}
declare module 'vue' {
export interface GlobalComponents {
2024-01-30 08:01:40 +00:00
FloatLabel: GlobalComponentConstructor<FloatLabel>;
}
}
export default FloatLabel;