UNPKG

@payfit/unity-components

Version:

39 lines (38 loc) 1.46 kB
import { ComponentPropsWithoutRef, ReactNode } from 'react'; import { EmptyState } from '../EmptyState.js'; export interface EmptyStateWaitingForDataProps extends Omit<ComponentPropsWithoutRef<typeof EmptyState>, 'children'> { /** * Custom title text. If not provided, uses the default i18n message. */ title?: string; /** * Description text providing context about the waiting state. * Defaults to placeholder text if not provided. */ description?: string; /** * Optional action elements (buttons, links) to display. * Pass Button or Link components as children. */ actions?: ReactNode; } /** * EmptyStateWaitingForData is a preset for informing users that data will appear once available. * It displays an info icon and provides an optional actions slot. * @param {EmptyStateWaitingForDataProps} props - The component props * @example * ```tsx * import { EmptyStateWaitingForData, Button } from '@payfit/unity-components' * * <EmptyStateWaitingForData * description="Your results will appear here once data is available." * actions={ * <Button variant="ghost" color="neutral" onPress={() => console.log('Refresh')}> * Refresh * </Button> * } * /> * ``` */ declare const EmptyStateWaitingForData: import('react').ForwardRefExoticComponent<EmptyStateWaitingForDataProps & import('react').RefAttributes<HTMLDivElement>>; export { EmptyStateWaitingForData };