npm.io
1.8.4 • Published 2 years ago

@types/react-relative-portal

Licence
MIT
Version
1.8.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-relative-portal

Summary

This package contains type definitions for react-relative-portal (https://github.com/smartprogress/react-relative-portal#readme).

Details

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

index.d.ts

import * as React from "react";

declare class RelativePortal extends React.Component<RelativePortal.Props> {}

declare namespace RelativePortal {
    interface Props {
        children: React.ReactNode;
        className?: string | undefined;
        component: string;
        fullWidth?: boolean | undefined;
        left?: number | undefined;
        onOutClick?: (() => void) | undefined;
        right?: number | undefined;
        top?: number | undefined;
    }
}

export = RelativePortal;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Andy Katz.