UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

20 lines (19 loc) 656 B
import { PolymorphicProps } from "../utils/modern-polymorphic.js"; import React, { ElementType } from "react"; //#region src/live-region/AriaAlert.d.ts 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; }>; declare function AriaAlert<As extends ElementType = 'div'>(props: AriaAlertProps<As>): React.JSX.Element; //#endregion export { AriaAlert, AriaAlertProps };