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
// Type definitions for react-router-tabs 1.3
// Project: https://github.com/chacestew/react-router-tabs#readme
// Definitions by: Joakim Unge <https://github.com/joakimunge>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Route, Link, RouteProps, LinkProps, NavLinkProps } from 'react-router-dom';
import { ReactNode, ComponentType } from 'react';
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: Wed, 05 Apr 2023 19:33:20 GMT
- Dependencies: @types/react, @types/react-router-dom
- Global values: none
Credits
These definitions were written by Joakim Unge.