Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Tabs.d.ts 651B

123456789101112131415161718192021222324252627
  1. import * as React from 'react';
  2. import Nav, { NavProps } from './Nav';
  3. import {
  4. BsPrefixComponent,
  5. SelectCallback,
  6. BsPrefixComponentClass,
  7. } from './helpers';
  8. export interface TabsProps {
  9. activeKey?: unknown;
  10. defaultActiveKey?: unknown;
  11. onSelect?: SelectCallback;
  12. variant?: 'tabs' | 'pills';
  13. transition?: false | React.ElementType;
  14. id: string;
  15. mountOnEnter?: boolean;
  16. unmountOnExit?: boolean;
  17. }
  18. declare class Tabs<
  19. // Need to use BsPrefixComponentClass to get proper type checking.
  20. As extends React.ElementType = BsPrefixComponentClass<'div', NavProps>
  21. > extends BsPrefixComponent<As, TabsProps> {}
  22. export default Tabs;