Skip to content

Commit f63e873

Browse files
committed
Close #31: Add support for placeholder
1 parent ff13207 commit f63e873

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ui.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ function FormField(props) {
4040
help_text: props.schema.help_text || props.schema.helpText,
4141
};
4242

43+
if (props.schema.placeholder)
44+
inputProps.placeholder = props.schema.placeholder;
45+
4346
let type = props.schema.type;
4447
let choices = props.schema.choices || props.schema.enum;
4548

0 commit comments

Comments
 (0)