props.ts 948 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import type { PassThroughProps } from "../../types";
  2. export type ClTextareaPassThrough = {
  3. className?: string;
  4. inner?: PassThroughProps;
  5. };
  6. export type ClTextareaProps = {
  7. className?: string;
  8. pt?: ClTextareaPassThrough;
  9. modelValue?: string;
  10. border?: boolean;
  11. disabled?: boolean;
  12. readonly?: boolean;
  13. showWordLimit?: boolean;
  14. name?: string;
  15. placeholder?: string;
  16. placeholderClass?: string;
  17. maxlength?: number;
  18. autofocus?: boolean;
  19. confirmType?: "done" | "go" | "next" | "search" | "send";
  20. cursor?: number;
  21. confirmHold?: boolean;
  22. height?: any;
  23. autoHeight?: boolean;
  24. fixed?: boolean;
  25. cursorSpacing?: number;
  26. cursorColor?: string;
  27. showConfirmBar?: boolean;
  28. selectionStart?: number;
  29. selectionEnd?: number;
  30. adjustPosition?: boolean;
  31. inputmode?: "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
  32. holdKeyboard?: boolean;
  33. disableDefaultPadding?: boolean;
  34. adjustKeyboardTo?: "cursor" | "bottom";
  35. };