@playcanvas/pcui
Version:
User interface component library for the web
28 lines (27 loc) • 647 B
TypeScript
import { Element, ElementArgs } from '../Element';
/**
* The arguments for the {@link Spinner} constructor.
*/
interface SpinnerArgs extends ElementArgs {
/**
* Sets the pixel size of the spinner. Defaults to 12.
*/
size?: string | number;
/**
* Can be 'small-thick'. Defaults to 'small-thick'.
*/
type?: 'small-thick';
}
/**
* Represents a spinning icon.
*/
declare class Spinner extends Element {
static TYPE_SMALL_THICK: string;
/**
* Creates a new Spinner.
*
* @param args - The arguments.
*/
constructor(args?: Readonly<SpinnerArgs>);
}
export { Spinner, SpinnerArgs };