UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

18 lines 671 B
import type React from 'react'; import { type ElementType } from 'react'; import type { PolymorphicProps } from '../utils/modern-polymorphic'; export type AriaAlertProps<As extends ElementType> = PolymorphicProps<As, 'div', { /** * Specify if the content of the element should be announced when this * component is rendered and is not hidden * @default true */ announceOnShow?: boolean; /** * Specify if the element is hidden * @default false */ hidden?: boolean; }>; export declare function AriaAlert<As extends ElementType = 'div'>(props: AriaAlertProps<As>): React.JSX.Element; //# sourceMappingURL=AriaAlert.d.ts.map