@carbon/ibm-products
Version:
Carbon for IBM Products
67 lines • 1.82 kB
TypeScript
/**
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { ElementType, ReactNode } from 'react';
import PropTypes from 'prop-types';
import { CustomLink, EmptyStateAction } from './EmptyState';
interface EmptyStateProps {
/**
* Empty state action button
*/
action?: EmptyStateAction;
/**
* Empty state headingAs allows you to customize the type of heading element
*/
headingAs?: (() => ReactNode) | string | ElementType;
/**
* Empty state link object
*/
link?: CustomLink;
/**
* Empty state size
*/
size?: 'lg' | 'sm';
/**
* Empty state subtitle
*/
subtitle?: ReactNode;
/**
* Empty state title
*/
title: ReactNode;
}
export declare const EmptyStateContent: {
(props: EmptyStateProps): React.JSX.Element;
displayName: string;
propTypes: {
/**
* Empty state action button
*/
action: PropTypes.Requireable<PropTypes.InferProps<any>>;
/**
* Empty state headingAs allows you to customize the type of heading element
*/
headingAs: PropTypes.Requireable<PropTypes.ReactComponentLike>;
/**
* Empty state link object
*/
link: PropTypes.Requireable<any>;
/**
* Empty state size
*/
size: PropTypes.Requireable<string>;
/**
* Empty state subtitle
*/
subtitle: PropTypes.Requireable<PropTypes.ReactNodeLike>;
/**
* Empty state title
*/
title: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
};
};
export {};
//# sourceMappingURL=EmptyStateContent.d.ts.map