jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
16 lines (15 loc) • 579 B
TypeScript
import type { PropsWithChildren } from 'react';
import type { ClassValue, PickClassStyleType, SchemaClassName } from 'jamis-core';
export interface AlertProps extends PropsWithChildren, PickClassStyleType {
level: 'danger' | 'info' | 'success' | 'warning';
title?: string;
className?: SchemaClassName;
showCloseButton: boolean;
showIcon?: boolean;
icon?: string | React.ReactNode;
iconClassName?: SchemaClassName;
closeButtonClassName?: SchemaClassName;
titleClassName?: ClassValue;
bodyClassName?: ClassValue;
onClose?: () => void;
}