Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Here is the Typescript module definition if anyone is interested #36

@louisremi

Description

@louisremi

Not issuing a PR as the project seems long dead

declare module 'chrome-sidebar' {
    import React, { ReactNode } from 'react';

    export interface LifecycleArgs {
        mask: React.LegacyRef,
        frame: React.LegacyRef
    }

    export interface FrameProps {
        url: string;
        delay?: number;
        maskClassName?: string;
        maskStyle?: React.CSSProperties;
        containerClassName?: string;
        containerStyle?: React.CSSProperties;
        iframeClassName?: string;
        iframeStyle?: React.CSSProperties;
        children?: ReactNode;
        containerChildren?: ReactNode;
        onMount?: (LifecycleArgs) => void;
        onUnmount?: (LifecycleArgs) => void;
        onLoad?: (LifecycleArgs) => void
    }

    export const Frame: React.SFC<FrameProps> & {
        isReady: () => boolean;
        toggle: () => void;
    }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions