UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

32 lines (31 loc) 1.15 kB
/** * Web Skeleton Helpers * */ import React from 'react'; import type { SkeletonShow } from './Skeleton'; import type { ContextProps } from '../../shared/Context'; export type SkeletonMethods = 'shape' | 'font' | 'code'; export type SkeletonContextValue = ContextProps & { translation?: { Skeleton?: { ariaBusy?: string; }; }; }; export type SkeletonDOMAttributesContext = { translation?: { Skeleton: { ariaBusy?: string; }; }; }; export declare const skeletonDOMAttributes: (params: React.HTMLProps<HTMLElement>, skeleton: SkeletonShow, context?: SkeletonContextValue) => React.HTMLProps<HTMLElement>; export declare const createSkeletonClass: (method: SkeletonMethods, skeleton: SkeletonShow, context?: SkeletonContextValue, className?: any) => any; export type SkeletonAutoSizeProps = { __element?: React.ElementType; children?: React.ReactNode; className?: string; style?: React.CSSProperties; }; export declare function AutoSize({ __element: Comp, children, className, style, ...props }: SkeletonAutoSizeProps): import("react/jsx-runtime").JSX.Element;