Dashboard sipadu mbip
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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;