@@ -35,6 +35,10 @@ export const input: SnippetFunc = (
35
35
description = "This parameter can be used to input text."
36
36
order = ${ order }
37
37
38
+ styling = jsonencode({
39
+ placeholder = "A placeholder that will appear if the input value is empty"
40
+ })
41
+
38
42
form_type = "input"
39
43
type = "string"
40
44
default = "An input value"
@@ -49,6 +53,10 @@ export const textarea: SnippetFunc = (
49
53
description = "This parameter can be used to input multiple lines of text"
50
54
order = ${ order }
51
55
56
+ styling = jsonencode({
57
+ placeholder = "A placeholder that will appear if the input value is empty"
58
+ })
59
+
52
60
form_type = "textarea"
53
61
type = "string"
54
62
default = "An input value"
@@ -101,6 +109,10 @@ export const dropdown: SnippetFunc = (
101
109
description = "This parameter supports selecting a single value out of a list of options. Especially useful when you have a lot of options."
102
110
order = ${ order }
103
111
112
+ styling = jsonencode({
113
+ placeholder = "A placeholder that will appear if the input value is empty"
114
+ })
115
+
104
116
type = "string"
105
117
form_type = "dropdown"
106
118
default = "option-1"
@@ -137,9 +149,10 @@ export const multiSelect: SnippetFunc = (
137
149
name = "${ name } "
138
150
display_name = "A multi-select input"
139
151
description = "This parameter supports selecting multiple values from a list of options"
152
+ order = ${ order }
153
+
140
154
type = "list(string)"
141
155
form_type = "multi-select"
142
- order = ${ order }
143
156
144
157
option {
145
158
name = "Option 1"
@@ -173,9 +186,10 @@ export const tagSelect: SnippetFunc = (
173
186
name = "${ name } "
174
187
display_name = "A tag-select input"
175
188
description = "This parameter supports selecting multiple user inputed values at once"
189
+ order = ${ order }
190
+
176
191
type = "list(string)"
177
192
form_type = "tag-select"
178
- order = ${ order }
179
193
}` ;
180
194
181
195
export const switchInput : SnippetFunc = (
@@ -185,10 +199,11 @@ export const switchInput: SnippetFunc = (
185
199
name = "${ name } "
186
200
display_name = "A switch input"
187
201
description = "This parameter can be toggled between true and false"
202
+ order = ${ order }
203
+
188
204
type = "bool"
189
205
form_type = "switch"
190
206
default = true
191
- order = ${ order }
192
207
}` ;
193
208
194
209
export const slider : SnippetFunc = (
0 commit comments