@visa/nova-react
Version:
Visa Product Design System Nova React library. Compatible with React ^19.
21 lines (20 loc) • 869 B
TypeScript
import type { ComponentPropsWithRef, ElementType } from 'react';
export type MessageType = 'error' | 'information' | 'success' | 'warning' | 'subtle';
export type MessageProperties<ET extends ElementType = 'div'> = {
/** Message Type */
messageType?: MessageType;
/** Tag of Component */
tag?: ElementType;
} & ComponentPropsWithRef<ET>;
/**
* Container for message elements. This is the base element for banner, flag, and section message.
* @docs {@link https://design.visa.com/components | See Docs}
* @related banner, flag, message-close-button, message-content, section-message
* @vgar TODO
* @wcag TODO
*/
declare const Message: {
<ET extends ElementType = "div">({ className, messageType, tag: Tag, ...remainingProps }: MessageProperties<ET>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
export default Message;