1.3.6 • Published 6 months ago

@types/react-router-tabs v1.3.6

Weekly downloads
636
License
MIT
Repository
github
Last release
6 months ago

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

Credits

These definitions were written by Joakim Unge.

1.3.6

6 months ago

1.3.5

7 months ago

1.3.4

8 months ago

1.3.3

1 year ago

1.3.2

3 years ago

1.3.1

4 years ago

1.3.0

4 years ago