props.ts 770 B

12345678910111213141516171819202122232425262728293031323334
  1. import type { PassThroughProps } from "../../types";
  2. import type { ClIconProps } from "../cl-icon/props";
  3. export type ClInputNumberValuePassThrough = {
  4. className?: string;
  5. input?: PassThroughProps;
  6. };
  7. export type ClInputNumberOpPassThrough = {
  8. className?: string;
  9. minus?: PassThroughProps;
  10. plus?: PassThroughProps;
  11. icon?: ClIconProps;
  12. };
  13. export type ClInputNumberPassThrough = {
  14. className?: string;
  15. value?: ClInputNumberValuePassThrough;
  16. op?: ClInputNumberOpPassThrough;
  17. };
  18. export type ClInputNumberProps = {
  19. className?: string;
  20. modelValue?: number;
  21. pt?: ClInputNumberPassThrough;
  22. placeholder?: string;
  23. step?: number;
  24. max?: number;
  25. min?: number;
  26. inputType?: "digit" | "number";
  27. inputable?: boolean;
  28. disabled?: boolean;
  29. size?: number | string;
  30. };