@primer/react
Version:
An implementation of GitHub's Primer Design System using React
26 lines • 941 B
TypeScript
import type React from 'react';
import { type ElementType } from 'react';
import type { SxProp } from '../sx';
export type AriaStatusProps<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 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;
} & SxProp>;
export declare function AriaStatus<As extends ElementType>({ announceOnShow, children, ...rest }: AriaStatusProps<As> & React.ComponentPropsWithoutRef<ElementType extends As ? As : 'div'>): React.JSX.Element;
//# sourceMappingURL=AriaStatus.d.ts.map