Dashboard sipadu mbip
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Navbar.d.ts 937B

1234567891011121314151617181920212223242526272829303132333435
  1. import * as React from 'react';
  2. import NavbarBrand from './NavbarBrand';
  3. import NavbarCollapse from './NavbarCollapse';
  4. import NavbarToggle from './NavbarToggle';
  5. import { BsPrefixComponent, SelectCallback } from './helpers';
  6. export class NavbarText<
  7. As extends React.ElementType = 'div'
  8. > extends BsPrefixComponent<As> {}
  9. export interface NavbarProps {
  10. variant?: 'light' | 'dark';
  11. expand?: boolean | 'sm' | 'md' | 'lg' | 'xl';
  12. bg?: string;
  13. fixed?: 'top' | 'bottom';
  14. sticky?: 'top' | 'bottom';
  15. onToggle?: (expanded: boolean) => void;
  16. onSelect?: SelectCallback;
  17. collapseOnSelect?: boolean;
  18. expanded?: boolean;
  19. role?: string;
  20. }
  21. declare class Navbar<
  22. As extends React.ElementType = 'nav'
  23. > extends BsPrefixComponent<As, NavbarProps> {
  24. static Brand: typeof NavbarBrand;
  25. static Toggle: typeof NavbarToggle;
  26. static Collapse: typeof NavbarCollapse;
  27. static Text: typeof NavbarText;
  28. }
  29. export default Navbar;