UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

40 lines (39 loc) 1.25 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 SkeletonContextProps = ContextProps & { translation?: { Skeleton?: { aria_busy?: string; }; }; }; export type skeletonDOMAttributesContext = { translation?: { Skeleton: { aria_busy?: string; }; }; }; export declare const skeletonDOMAttributes: (params: React.HTMLProps<HTMLElement>, skeleton: SkeletonShow, context?: SkeletonContextProps) => React.HTMLProps<HTMLElement>; export declare const createSkeletonClass: (method: SkeletonMethods, skeleton: SkeletonShow, context?: SkeletonContextProps, className?: any) => any; export type AutoSizeProps = { __element?: React.ElementType; children?: React.ReactNode; className?: string; style?: React.CSSProperties; }; export declare class AutoSize extends React.Component<AutoSizeProps, any> { static defaultProps: { __element: any; children: any; className: any; style: any; }; render(): import("react/jsx-runtime").JSX.Element; }