feat(Textarea): add resize-none class with autoresize prop

This commit is contained in:
Benjamin Canac
2025-04-01 12:44:50 +02:00
parent 06414d344b
commit ffafd81e1e
5 changed files with 21 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ const ui = computed(() => textarea({
size: size?.value,
loading: props.loading,
highlight: highlight.value,
autoresize: props.autoresize,
leading: isLeading.value || !!props.avatar || !!slots.leading,
trailing: isTrailing.value || !!slots.trailing
}))

View File

@@ -9,6 +9,11 @@ export default (options: Required<ModuleOptions>) => {
trailing: 'absolute end-0 flex items-start'
},
variants: {
autoresize: {
true: {
base: 'resize-none'
}
},
size: {
xs: {
leading: 'ps-2 inset-y-1',