SideNav.d.ts 779 B

1234567891011121314151617181920212223242526
  1. import * as React from 'react';
  2. export interface SideNavProps extends React.HTMLProps<HTMLUListElement> {
  3. }
  4. export declare class SideNav extends React.Component<SideNavProps> {
  5. state: {
  6. open: boolean;
  7. };
  8. open(): void;
  9. toggle(): void;
  10. hide(): void;
  11. render(): JSX.Element;
  12. }
  13. export interface SideNavUserProps extends React.HTMLProps<HTMLLIElement> {
  14. readonly src: string;
  15. readonly bg_src: string;
  16. readonly username: string;
  17. readonly email: string;
  18. }
  19. export declare class SideNavUser extends React.Component<SideNavUserProps> {
  20. render(): JSX.Element;
  21. }
  22. export interface SideNavElProps extends React.HTMLProps<HTMLLIElement> {
  23. }
  24. export declare class SideNavEl extends React.Component<SideNavElProps> {
  25. render(): JSX.Element;
  26. }