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
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react, @types/react-router-dom
Credits
These definitions were written by Joakim Unge.