UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

19 lines 753 B
import type React from 'react'; type MessageVariant = 'critical' | 'success' | 'unavailable' | 'warning'; export 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; }; export declare function InlineMessage({ children, className, size, variant, leadingVisual: LeadingVisual, ...rest }: InlineMessageProps): React.JSX.Element; export {}; //# sourceMappingURL=InlineMessage.d.ts.map