Skip to content

Commit 66f43e8

Browse files
committed
feat(textarea): Textarea auto resize props #27
1 parent 506f86b commit 66f43e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/formkit/PrimeTextarea.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
3030
:aria-labelledby="attrs.ariaLabelledby"
3131
:placeholder="attrs.placeholder"
3232
:rows="context.rows ?? 3"
33+
:auto-resize="attrs.autoResize ?? false"
3334
:pt="attrs.pt"
3435
:pt-options="attrs.ptOptions"
3536
:unstyled="attrs.unstyled ?? false"

src/pages/demo/Textarea.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const schema
1515
name: 'name',
1616
label: '5 Rows',
1717
rows: 5,
18+
autoResize: true,
1819
},
1920
{
2021
$formkit: 'primeTextarea',

0 commit comments

Comments
 (0)