TypeScript

Package type declaration

Describe the public runtime contract for TypeScript consumers.

Formal Syntax & Structure

react syntaxreact
export declare function Badge(props: BadgeProps): ReactElement;

Working Example

Example Snippetreact
Verify against actual React type declarations.
React Reference