UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

24 lines (23 loc) 772 B
import { PolymorphicProps } from "../utils/modern-polymorphic.js"; import React, { ElementType } from "react"; //#region src/live-region/AriaStatus.d.ts type AriaStatusProps<As extends ElementType = 'div'> = PolymorphicProps<As, 'div', { /** * Specify if the content of the element should be announced when this * component is rendered and is not hidden * @default false */ announceOnShow?: boolean; /** * Specify if the element is hidden * @default false */ hidden?: boolean; /** * Provide a delay in milliseconds before the announcement is made */ delayMs?: number; }>; declare function AriaStatus<As extends ElementType = 'div'>(props: AriaStatusProps<As>): React.JSX.Element; //#endregion export { AriaStatus, AriaStatusProps };