import React from 'react'; import { LayoutProps } from 'styled-system'; /** * Prop Types of a Placeholder component. * Apart from standard html props it extends {@link LayoutProps} * @typedef {object} PlaceholderProps * @memberof Placeholder * @alias PlaceholderProps * @property {string} [...] All props default to _div_ html component like `style`, * `id` etc. * @property {string} [...] Props from {@link LayoutProps} */ export type PlaceholderProps = LayoutProps & React.HTMLProps & { as?: 'div' | 'span'; }; /** * @classdesc * * * * Renders placeholder * * ### Usage * * ```javascript * import { Placeholder, PlaceholderProps } from '@adminjs/design-system' * ``` * * @component * @subcategory Atoms * @see PlaceholderProps * @see {@link https://storybook.adminjs.co/?path=/story/designsystem-atoms-placeholder--default Storybook} * @hideconstructor * @example Image placeholder * return ( * * * * ) * * @example Text placeholder * return ( * * * * * ) * @section design-system */ declare const Placeholder: React.FC; export { Placeholder }; export default Placeholder;