@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
19 lines • 882 B
TypeScript
import React from 'react';
import { DefaultProps } from '../../theme';
import useStyles from './Alert.styles';
export declare type AlertStylesName = keyof ReturnType<typeof useStyles>;
export interface AlertProps extends DefaultProps<AlertStylesName>, Omit<React.ComponentPropsWithoutRef<'div'>, 'title'> {
/** Optional alert title */
title?: React.ReactNode;
/** Alert message */
children: React.ReactNode;
/** Alert title and line colors from theme */
color?: string;
/** Predefined box-shadow from theme.shadows (xs, sm, md, lg, xl) or any valid css box-shadow property */
shadow?: string;
}
export declare function Alert({ className, title, children, themeOverride, color, shadow, style, classNames, styles, ...others }: AlertProps): JSX.Element;
export declare namespace Alert {
var displayName: string;
}
//# sourceMappingURL=Alert.d.ts.map