make textarea rows configurable (#3042)

* make textarea rows configurable

* add comments

* better defaults
This commit is contained in:
Matt Hill
2025-10-31 11:46:49 -06:00
committed by GitHub
parent 57c4a7527e
commit 1ea525feaa
6 changed files with 25 additions and 3 deletions

View File

@@ -140,6 +140,8 @@ describe("values", () => {
warning: null,
minLength: null,
maxLength: null,
minRows: 3,
maxRows: 6,
placeholder: null,
}).build({} as any)
const validator = value.validator
@@ -452,6 +454,8 @@ describe("values", () => {
warning: null,
minLength: null,
maxLength: null,
minRows: 3,
maxRows: 6,
placeholder: null,
})).build({} as any)
const validator = value.validator

View File

@@ -81,8 +81,10 @@ const {InputSpec, List, Value, Variants} = sdk
required: !(value.nullable || false),
default: value.default,
placeholder: value.placeholder || null,
maxLength: null,
minLength: null,
maxLength: null,
minRows: 3,
maxRows: 6,
},
null,
2,