docs(input): clarify intended placeholder behavior for certain input types (#24567)

resolves #24557
This commit is contained in:
Liam DeBeasi
2022-01-12 11:44:52 -05:00
committed by GitHub
parent 3d20959221
commit 8c442059b5
3 changed files with 5 additions and 3 deletions

View File

@ -1081,7 +1081,7 @@ export namespace Components {
*/
"pattern"?: string;
/**
* Instructional text that shows before the input has a value.
* Instructional text that shows before the input has a value. This property applies only when the `type` property is set to `"email"`, `"number"`, `"password"`, `"search"`, `"tel"`, `"text"`, or `"url"`, otherwise it is ignored.
*/
"placeholder"?: string;
/**
@ -4802,7 +4802,7 @@ declare namespace LocalJSX {
*/
"pattern"?: string;
/**
* Instructional text that shows before the input has a value.
* Instructional text that shows before the input has a value. This property applies only when the `type` property is set to `"email"`, `"number"`, `"password"`, `"search"`, `"tel"`, `"text"`, or `"url"`, otherwise it is ignored.
*/
"placeholder"?: string;
/**