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 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Andy Katz.