UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

22 lines 827 B
import type React from 'react'; import { type ElementType } from 'react'; import type { SxProp } from '../sx'; export type AriaAlertProps<As extends ElementType> = React.PropsWithChildren<{ /** * Customize the element type of the rendered container */ as?: As; /** * 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; } & SxProp>; export declare function AriaAlert<As extends ElementType>({ announceOnShow, children, ...rest }: AriaAlertProps<As> & React.ComponentPropsWithoutRef<ElementType extends As ? As : 'div'>): React.JSX.Element; //# sourceMappingURL=AriaAlert.d.ts.map