native-base
Version:
Essential cross-platform UI components for React Native
33 lines (32 loc) • 1.16 kB
TypeScript
import type { MutableRefObject } from 'react';
import type { InterfaceBoxProps } from '../../../components/primitives/Box';
import type { IIconProps } from '../../primitives';
import type { ColorSchemeType, CustomProps, VariantType } from '../../types';
export interface InterfaceAlertProps extends InterfaceBoxProps<IAlertProps> {
/** The status of the alert
* @default info
*/
status?: 'info' | 'warning' | 'success' | 'error' | (string & {});
/** The variant of the alert style to use.
* @default subtle
*/
variant?: VariantType<'Alert'>;
/** The colorScheme of the Alert.
*/
colorScheme?: ColorSchemeType;
}
export declare type IAlertContext = {
status?: string;
_icon?: IIconProps;
variant?: string;
};
export interface IAlertIconProps extends IIconProps {
}
export declare type IAlertComponentType = ((props: IAlertProps & {
ref?: MutableRefObject<any>;
}) => JSX.Element) & {
Icon: React.MemoExoticComponent<(props: IAlertIconProps & {
ref?: MutableRefObject<any>;
}) => JSX.Element>;
};
export declare type IAlertProps = InterfaceAlertProps & CustomProps<'Alert'>;