@gravity-ui/uikit
Version:
Gravity UI base styling and components
26 lines (25 loc) • 907 B
TypeScript
import type * as React from 'react';
import type { ButtonProps } from "../Button/index.js";
import type { QAProps } from "../types.js";
type Size = 's' | 'm' | 'l' | 'promo';
type PlaceholderContainerImageNodeProps = NonNullable<React.ReactNode>;
export type PlaceholderContainerImageProps = {
src: string;
alt?: string;
};
export type PlaceholderContainerActionProps = Pick<ButtonProps, 'disabled' | 'loading' | 'view' | 'size' | 'onClick'> & {
href?: string;
text: string;
};
export interface PlaceholderContainerProps extends QAProps {
size?: Size;
direction?: 'row' | 'column';
align?: 'left' | 'center';
title?: string;
description?: React.ReactNode;
content?: React.ReactNode;
actions?: PlaceholderContainerActionProps[] | React.ReactNode;
className?: string;
image: PlaceholderContainerImageNodeProps | PlaceholderContainerImageProps;
}
export {};