type.d.ts 991 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { OverlayProps } from '../overlay/index';
  2. export interface TdToastProps {
  3. direction?: {
  4. type: StringConstructor;
  5. value?: 'row' | 'column';
  6. };
  7. duration?: {
  8. type: NumberConstructor;
  9. value?: number;
  10. };
  11. icon?: {
  12. type: null;
  13. value?: string | object;
  14. };
  15. message?: {
  16. type: StringConstructor;
  17. value?: string;
  18. };
  19. overlayProps?: {
  20. type: ObjectConstructor;
  21. value?: OverlayProps;
  22. };
  23. placement?: {
  24. type: StringConstructor;
  25. value?: 'top' | 'middle' | 'bottom';
  26. };
  27. preventScrollThrough?: {
  28. type: BooleanConstructor;
  29. value?: boolean;
  30. };
  31. showOverlay?: {
  32. type: BooleanConstructor;
  33. value?: boolean;
  34. };
  35. theme?: {
  36. type: StringConstructor;
  37. value?: 'loading' | 'success' | 'warning' | 'error';
  38. };
  39. usingCustomNavbar?: {
  40. type: BooleanConstructor;
  41. value?: boolean;
  42. };
  43. }