import { CssLength } from '@breadstone/mosaik-themes'; import { SkeletonShape } from '../../../Types/SkeletonShape'; import { CustomElement } from '../../Abstracts/CustomElement'; import { ISkeletonElementProps } from './ISkeletonElementProps'; type Target = '_blank' | '_self' | '_parent' | '_top'; declare const SkeletonElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Dimensionable").IDimensionableProps) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Skeleton - A placeholder element that mimics content structure during loading states. * * @description * The Skeleton component is a fundamental loading indicator that provides visual feedback while * content is being fetched or processed. It displays placeholder shapes that approximate the final * content layout, reducing perceived loading time and improving user experience by showing the * structure of upcoming content. The component supports multiple shape variants (rectangle, circle, * text) through the SkeletonShape enumeration, configurable dimensions via the Dimensionable behavior, * and an optional shimmer animation effect that creates a subtle sweeping highlight to indicate * loading activity. Skeleton screens are proven to reduce bounce rates and increase user engagement * during asynchronous operations. * * @name Skeleton * @element mosaik-skeleton * @category Primitives * * @csspart shimmer - The animated shimmer highlight overlay element * * @cssprop {String} --skeleton-background-color - The base background color of the skeleton placeholder * @cssprop {String} --skeleton-border-color - The border color of the skeleton placeholder * @cssprop {String} --skeleton-border-radius - The border radius for rounded skeleton shapes * @cssprop {String} --skeleton-border-style - The border style for the skeleton placeholder * @cssprop {String} --skeleton-border-width - The border width for the skeleton placeholder * @cssprop {String} --skeleton-font-family - The font family CSS custom property. * @cssprop {String} --skeleton-font-letter-spacing - The font letter spacing CSS custom property. * @cssprop {String} --skeleton-font-line-height - The font line height CSS custom property. * @cssprop {String} --skeleton-font-size - The font size CSS custom property. * @cssprop {String} --skeleton-font-text-decoration - The font text decoration CSS custom property. * @cssprop {String} --skeleton-font-text-transform - The font text transform CSS custom property. * @cssprop {String} --skeleton-font-weight - The font weight CSS custom property. * @cssprop {String} --skeleton-foreground-color - The foreground color (typically unused but available) * @cssprop {String} --skeleton-gap - The gap CSS custom property. * @cssprop {String} --skeleton-padding-bottom - The padding bottom CSS custom property. * @cssprop {String} --skeleton-padding-left - The padding left CSS custom property. * @cssprop {String} --skeleton-padding-right - The padding right CSS custom property. * @cssprop {String} --skeleton-padding-top - The padding top CSS custom property. * @cssprop {String} --skeleton-shadow - The shadow CSS custom property. * @cssprop {String} --skeleton-shadow-blur - The shadow blur CSS custom property. * @cssprop {String} --skeleton-shadow-color - The shadow color CSS custom property. * @cssprop {String} --skeleton-shadow-offset-x - The shadow offset x CSS custom property. * @cssprop {String} --skeleton-shadow-offset-y - The shadow offset y CSS custom property. * @cssprop {String} --skeleton-shadow-spread - The shadow spread CSS custom property. * @cssprop {String} --skeleton-transition-duration - The transition duration CSS custom property. * @cssprop {String} --skeleton-transition-mode - The transition mode CSS custom property. * @cssprop {String} --skeleton-transition-property - The transition property CSS custom property. * @cssprop {String} --skeleton-translate - The translate CSS custom property. * * @example * Text line skeleton placeholder: * ```html * * ``` * * @example * Avatar skeleton with shimmer animation: * ```html * * ``` * * @public */ export declare class SkeletonElement extends SkeletonElement_base implements ISkeletonElementProps { private _shape; private _shimmer; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; target?: Target; /** * Gets or sets the `shape` property. * * @public * @attr */ get shape(): SkeletonShape; set shape(value: SkeletonShape); /** * Gets or sets the `shimmer` property. * * @public * @attr */ get shimmer(): boolean; set shimmer(value: boolean); /** * @protected */ protected onWidthPropertyChanged(prev?: CssLength, next?: CssLength): void; /** * @protected */ protected onHeightPropertyChanged(prev?: CssLength, next?: CssLength): void; } /** * @public */ export declare namespace SkeletonElement { type Props = ISkeletonElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-skeleton': SkeletonElement; } } export {}; //# sourceMappingURL=SkeletonElement.d.ts.map