Design system.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

text-control.ts 548 B

123456789101112131415
  1. export const AVAILABLE_SIZES = ['small', 'medium', 'large'] as const;
  2. export type Size = typeof AVAILABLE_SIZES[number];
  3. export const AVAILABLE_VARIANTS = ['default', 'alternate'] as const;
  4. export type Variant = typeof AVAILABLE_VARIANTS[number];
  5. export const AVAILABLE_INPUT_TYPES = ['text', 'search'] as const;
  6. export type InputType = typeof AVAILABLE_INPUT_TYPES[number];
  7. export const AVAILABLE_INPUT_MODES = ['none', 'numeric', 'decimal', ...AVAILABLE_INPUT_TYPES] as const;
  8. export type InputMode = typeof AVAILABLE_INPUT_MODES[number];