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

5.1.1 • Public • Published

Installation

npm install --save @types/react-smartbanner

Summary

This package contains type definitions for react-smartbanner (https://github.com/patw0929/react-smartbanner#readme).

Details

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

/// <reference types="react" />

type Stores = "ios" | "android" | "windows" | "kindle";
type StoreObject = Partial<Record<Stores, string>>;

interface Props {
    position: "top" | "bottom";
    daysHidden?: number;
    daysReminder?: number;
    appStoreLanguage?: string;
    title?: string;
    author?: string;
    button?: React.ReactNode;
    storeText?: StoreObject;
    price?: StoreObject;
    url?: StoreObject;
    appMeta?: StoreObject;
    force?: Stores;
    ignoreIosVersion?: boolean;
    onClose?: () => void;
    onInstall?: () => void;
}

declare const SmartBanner: React.FC<Props>;

declare module "dist/main.css";

export = SmartBanner;

Additional Details

  • Last updated: Fri, 18 Oct 2024 17:07:32 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Eldar Bakerman.

Dependents (0)

Package Sidebar

Install

npm i @types/react-smartbanner

Weekly Downloads

151

Version

5.1.1

License

MIT

Unpacked Size

4.03 kB

Total Files

5

Last publish

Collaborators

  • types