@types/react-aria-live
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

Installation

npm install --save @types/react-aria-live

Summary

This package contains type definitions for react-aria-live (https://github.com/AlmeroSteyn/react-aria-live#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-aria-live.

index.d.ts

import * as React from "react";

export class LiveAnnouncer extends React.Component {
    announcePolite(message: string, id?: string): void;
    announceAssertive(message: string, id?: string): void;
}

export const LiveMessage: React.FunctionComponent<{
    "aria-live": "assertive" | "polite";
    clearOnUnmount?: boolean | "true" | "false" | undefined;
    message: string;
}>;

export const LiveMessenger: React.FunctionComponent<{
    children(contextProps: {
        announceAssertive(message: string, id?: string): void;
        announcePolite(message: string, id?: string): void;
    }): React.ReactNode;
}>;

Additional Details

  • Last updated: Thu, 28 Dec 2023 22:06:53 GMT
  • Dependencies: @types/react

Credits

These definitions were written by AJ Livingston.

/@types/react-aria-live/

    Package Sidebar

    Install

    npm i @types/react-aria-live

    Weekly Downloads

    859

    Version

    2.0.6

    License

    MIT

    Unpacked Size

    3.91 kB

    Total Files

    5

    Last publish

    Collaborators

    • types