Skeleton .d.ts updated
parent
1f083c3a27
commit
7418526f69
|
@ -1,28 +1,35 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Skeleton is a placeholder to display instead of the actual content.
|
||||||
|
*
|
||||||
|
* [Live Demo](https://www.primevue.org/skeleton/)
|
||||||
|
*
|
||||||
|
* @module skeleton
|
||||||
|
*
|
||||||
|
*/
|
||||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||||
|
|
||||||
type SkeletonShapeType = 'rectangle' | 'circle' | undefined;
|
/**
|
||||||
|
* Defines valid properties in Skeleton component.
|
||||||
type SkeletonAnimationType = 'wave' | 'none' | undefined;
|
*/
|
||||||
|
|
||||||
export interface SkeletonProps {
|
export interface SkeletonProps {
|
||||||
/**
|
/**
|
||||||
* Shape of the element.
|
* Shape of the element.
|
||||||
* @see SkeletonShapeType
|
* @defaultValue rectangle
|
||||||
* Default value is 'rectangle'.
|
|
||||||
*/
|
*/
|
||||||
shape?: SkeletonShapeType;
|
shape?: 'rectangle' | 'circle' | undefined;
|
||||||
/**
|
/**
|
||||||
* Size of the Circle or Square.
|
* Size of the Circle or Square.
|
||||||
*/
|
*/
|
||||||
size?: string | undefined;
|
size?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* Width of the element.
|
* Width of the element.
|
||||||
* Default value is '100%'.
|
* @defaultValue 100%
|
||||||
*/
|
*/
|
||||||
width?: string | undefined;
|
width?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* Height of the element.
|
* Height of the element.
|
||||||
* Default value is '1rem'.
|
* @defaultValue 1rem
|
||||||
*/
|
*/
|
||||||
height?: string | undefined;
|
height?: string | undefined;
|
||||||
/**
|
/**
|
||||||
|
@ -31,16 +38,32 @@ export interface SkeletonProps {
|
||||||
borderRadius?: string | undefined;
|
borderRadius?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* Type of the animation.
|
* Type of the animation.
|
||||||
* @see SkeletonAnimationType
|
* @defaultValue wave
|
||||||
* Default value is 'wave'.
|
|
||||||
*/
|
*/
|
||||||
animation?: SkeletonAnimationType;
|
animation?: 'wave' | 'none' | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines valid slots in Skeleton component.
|
||||||
|
*/
|
||||||
export interface SkeletonSlots {}
|
export interface SkeletonSlots {}
|
||||||
|
|
||||||
export declare type SkeletonEmits = {};
|
/**
|
||||||
|
* Defines valid emits in Skeleton component.
|
||||||
|
*/
|
||||||
|
export interface SkeletonEmits {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* **PrimeVue - Skeleton**
|
||||||
|
*
|
||||||
|
* _Skeleton is a placeholder to display instead of the actual content._
|
||||||
|
*
|
||||||
|
* [Live Demo](https://www.primevue.org/skeleton/)
|
||||||
|
* --- ---
|
||||||
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
||||||
|
*
|
||||||
|
* @group Component
|
||||||
|
*/
|
||||||
declare class Skeleton extends ClassComponent<SkeletonProps, SkeletonSlots, SkeletonEmits> {}
|
declare class Skeleton extends ClassComponent<SkeletonProps, SkeletonSlots, SkeletonEmits> {}
|
||||||
|
|
||||||
declare module '@vue/runtime-core' {
|
declare module '@vue/runtime-core' {
|
||||||
|
@ -49,13 +72,4 @@ declare module '@vue/runtime-core' {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* Skeleton is a placeholder to display instead of the actual content.
|
|
||||||
*
|
|
||||||
* Demos:
|
|
||||||
*
|
|
||||||
* - [Skeleton](https://www.primefaces.org/primevue/skeleton)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export default Skeleton;
|
export default Skeleton;
|
||||||
|
|
Loading…
Reference in New Issue