UNPKG

@postenbring/hedwig-react

Version:

React components for [Hedwig Design System](https://github.com/bring/hedwig-design-system).

36 lines 1.45 kB
import { forwardRef } from "react"; import { type BoxProps } from "../box/box"; export interface MessageTitleProps extends React.HTMLAttributes<HTMLParagraphElement> { /** * Change the default rendered element for the one passed as a child, merging their props and behavior. * * @default false */ asChild?: boolean; } export declare const MessageTitle: import("react").ForwardRefExoticComponent<MessageTitleProps & import("react").RefAttributes<HTMLParagraphElement>>; export interface MessageDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> { /** * Change the default rendered element for the one passed as a child, merging their props and behavior. * * @default false */ asChild?: boolean; } export declare const MessageDescription: import("react").ForwardRefExoticComponent<MessageDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>; export type MessageProps = ({ variant?: "success" | "attention" | "warning" | "info"; icon?: never; iconClassName?: never; } | { variant: "neutral"; icon?: React.ReactNode; iconClassName?: string; }) & Omit<BoxProps, "variant" | "asChild">; export declare const Message: MessageType; type MessageType = ReturnType<typeof forwardRef<HTMLDivElement, MessageProps>> & { Title: typeof MessageTitle; Description: typeof MessageDescription; }; export {}; //# sourceMappingURL=message.d.ts.map