2022-09-06 12:03:37 +00:00
|
|
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
|
|
|
|
|
|
type SkeletonShapeType = 'rectangle' | 'circle' | undefined;
|
|
|
|
|
|
|
|
type SkeletonAnimationType = 'wave' | 'none' | undefined;
|
|
|
|
|
|
|
|
export interface SkeletonProps {
|
|
|
|
/**
|
|
|
|
* Shape of the element.
|
|
|
|
* @see SkeletonShapeType
|
|
|
|
* Default value is 'rectangle'.
|
|
|
|
*/
|
|
|
|
shape?: SkeletonShapeType;
|
|
|
|
/**
|
|
|
|
* Size of the Circle or Square.
|
|
|
|
*/
|
|
|
|
size?: string | undefined;
|
|
|
|
/**
|
|
|
|
* Width of the element.
|
|
|
|
* Default value is '100%'.
|
|
|
|
*/
|
|
|
|
width?: string | undefined;
|
|
|
|
/**
|
|
|
|
* Height of the element.
|
|
|
|
* Default value is '1rem'.
|
|
|
|
*/
|
|
|
|
height?: string | undefined;
|
|
|
|
/**
|
|
|
|
* Border radius of the element, defaults to value from theme.
|
|
|
|
*/
|
|
|
|
borderRadius?: string | undefined;
|
|
|
|
/**
|
|
|
|
* Type of the animation.
|
|
|
|
* @see SkeletonAnimationType
|
|
|
|
* Default value is 'wave'.
|
|
|
|
*/
|
|
|
|
animation?: SkeletonAnimationType;
|
|
|
|
}
|
|
|
|
|
2022-09-14 11:26:01 +00:00
|
|
|
export interface SkeletonSlots {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2022-09-14 11:26:01 +00:00
|
|
|
export declare type SkeletonEmits = {};
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2022-09-14 11:26:01 +00:00
|
|
|
declare class Skeleton extends ClassComponent<SkeletonProps, SkeletonSlots, SkeletonEmits> {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
|
|
|
declare module '@vue/runtime-core' {
|
|
|
|
interface GlobalComponents {
|
2022-09-14 11:26:01 +00:00
|
|
|
Skeleton: GlobalComponentConstructor<Skeleton>;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Skeleton is a placeholder to display instead of the actual content.
|
|
|
|
*
|
|
|
|
* Demos:
|
|
|
|
*
|
2022-09-14 11:26:01 +00:00
|
|
|
* - [Skeleton](https://www.primefaces.org/primevue/skeleton)
|
2022-09-06 12:03:37 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
export default Skeleton;
|