props.ts 976 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. placeholderStyle?: string;
  18. maxlength?: number;
  19. autofocus?: boolean;
  20. confirmType?: "done" | "go" | "next" | "search" | "send";
  21. cursor?: number;
  22. confirmHold?: boolean;
  23. height?: any;
  24. autoHeight?: boolean;
  25. fixed?: boolean;
  26. cursorSpacing?: number;
  27. cursorColor?: string;
  28. showConfirmBar?: boolean;
  29. selectionStart?: number;
  30. selectionEnd?: number;
  31. adjustPosition?: boolean;
  32. inputmode?: "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
  33. holdKeyboard?: boolean;
  34. disableDefaultPadding?: boolean;
  35. adjustKeyboardTo?: "cursor" | "bottom";
  36. };