mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
feat(Textarea): add resize-none class with autoresize prop
This commit is contained in:
@@ -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
|
||||
}))
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user