@@ -6,8 +6,8 @@ const model = defineModel<string>({ default: '' })
66const props = withDefaults (
77 defineProps <{
88 disabled? : boolean
9- /** @default ' medium ' */
10- size? : ' small ' | ' medium ' | ' large '
9+ /** @default ' md ' */
10+ size? : ' sm ' | ' md ' | ' lg '
1111 /**
1212 * Prevents the browser from automatically modifying user input
1313 * (e.g. autocorrect, autocomplete, autocapitalize, and spellcheck).
@@ -18,7 +18,7 @@ const props = withDefaults(
1818 ariaKeyshortcuts? : string
1919 }>(),
2020 {
21- size: ' medium ' ,
21+ size: ' md ' ,
2222 noCorrect: true ,
2323 },
2424)
@@ -47,9 +47,9 @@ defineExpose({
4747 @blur =" emit('blur', $event)"
4848 class =" appearance-none bg-bg-subtle border border-border font-mono text-fg placeholder:text-fg-subtle transition-[border-color,outline-color] duration-300 hover:border-fg-subtle outline-2 outline-transparent outline-offset-2 focus:border-accent focus-visible:outline-accent/70 disabled:(opacity-50 cursor-not-allowed)"
4949 :class =" {
50- 'text-xs leading-[1.2] px-2 py-2 rounded-md': size === 'small ',
51- 'text-sm leading-none px-3 py-2.5 rounded-lg': size === 'medium ',
52- 'text-base leading-[1.4] px-6 py-4 rounded-xl': size === 'large ',
50+ 'text-xs leading-[1.2] px-2 py-2 rounded-md': size === 'sm ',
51+ 'text-sm leading-none px-3 py-2.5 rounded-lg': size === 'md ',
52+ 'text-base leading-[1.4] px-6 py-4 rounded-xl': size === 'lg ',
5353 }"
5454 :disabled ="
5555 /** Catching Vue render-bug of invalid `disabled=false` attribute in the final HTML */
0 commit comments