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

1.3.6 • Public • Published

Installation

npm install --save @types/react-router-tabs

Summary

This package contains type definitions for react-router-tabs (https://github.com/chacestew/react-router-tabs#readme).

Details

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

index.d.ts

import { ComponentType, ReactNode } from "react";
import { Link, LinkProps, NavLinkProps, Route, RouteProps } from "react-router-dom";

export type AriaCurrent = "page" | "step" | "location" | "date" | "time" | "true";

export interface NavTabProps extends NavLinkProps {
    style?: React.CSSProperties | undefined;
    disabled?: boolean | undefined;
    allowClickOnActive?: boolean | undefined;
    "aria-current"?: AriaCurrent | undefined;
}
export interface RoutedTabsProps {
    startPathWith?: string | undefined;
    className?: string | undefined;
    style?: object | undefined;
    tabClassName?: string | undefined;
    activeTabClassName?: string | undefined;
    tabStyle?: object | undefined;
    activeTabStyle?: object | undefined;
    children?: ReactNode | undefined;
}

export const NavTab: ComponentType<NavTabProps>;

export const RoutedTabs: ComponentType<RoutedTabsProps>;

Additional Details

Credits

These definitions were written by Joakim Unge.

Dependents (0)

Package Sidebar

Install

npm i @types/react-router-tabs

Weekly Downloads

495

Version

1.3.6

License

MIT

Unpacked Size

4.62 kB

Total Files

5

Last publish

Collaborators

  • types