@primer/react
Version:
An implementation of GitHub's Primer Design System using React
28 lines (27 loc) • 775 B
TypeScript
import React from "react";
//#region src/InlineMessage/InlineMessage.d.ts
type MessageVariant = 'critical' | 'success' | 'unavailable' | 'warning';
type InlineMessageProps = React.ComponentPropsWithoutRef<'div'> & {
/**
* Specify the size of the InlineMessage
*/
size?: 'small' | 'medium';
/**
* Specify the type of the InlineMessage
*/
variant?: MessageVariant;
/**
* A custom leading visual (icon or other element) to display instead of the default variant icon.
*/
leadingVisual?: React.ElementType | React.ReactNode;
};
declare function InlineMessage({
children,
className,
size,
variant,
leadingVisual: LeadingVisual,
...rest
}: InlineMessageProps): React.JSX.Element;
//#endregion
export { InlineMessage, InlineMessageProps };