@@ -35,6 +35,10 @@ export const input: SnippetFunc = (
3535 description = "This parameter can be used to input text."
3636 order = ${ order }
3737
38+ styling = jsonencode({
39+ placeholder = "A placeholder that will appear if the input value is empty"
40+ })
41+
3842 form_type = "input"
3943 type = "string"
4044 default = "An input value"
@@ -49,6 +53,10 @@ export const textarea: SnippetFunc = (
4953 description = "This parameter can be used to input multiple lines of text"
5054 order = ${ order }
5155
56+ styling = jsonencode({
57+ placeholder = "A placeholder that will appear if the input value is empty"
58+ })
59+
5260 form_type = "textarea"
5361 type = "string"
5462 default = "An input value"
@@ -101,6 +109,10 @@ export const dropdown: SnippetFunc = (
101109 description = "This parameter supports selecting a single value out of a list of options. Especially useful when you have a lot of options."
102110 order = ${ order }
103111
112+ styling = jsonencode({
113+ placeholder = "A placeholder that will appear if the input value is empty"
114+ })
115+
104116 type = "string"
105117 form_type = "dropdown"
106118 default = "option-1"
@@ -137,9 +149,10 @@ export const multiSelect: SnippetFunc = (
137149 name = "${ name } "
138150 display_name = "A multi-select input"
139151 description = "This parameter supports selecting multiple values from a list of options"
152+ order = ${ order }
153+
140154 type = "list(string)"
141155 form_type = "multi-select"
142- order = ${ order }
143156
144157 option {
145158 name = "Option 1"
@@ -173,9 +186,10 @@ export const tagSelect: SnippetFunc = (
173186 name = "${ name } "
174187 display_name = "A tag-select input"
175188 description = "This parameter supports selecting multiple user inputed values at once"
189+ order = ${ order }
190+
176191 type = "list(string)"
177192 form_type = "tag-select"
178- order = ${ order }
179193}` ;
180194
181195export const switchInput : SnippetFunc = (
@@ -185,10 +199,11 @@ export const switchInput: SnippetFunc = (
185199 name = "${ name } "
186200 display_name = "A switch input"
187201 description = "This parameter can be toggled between true and false"
202+ order = ${ order }
203+
188204 type = "bool"
189205 form_type = "switch"
190206 default = true
191- order = ${ order }
192207}` ;
193208
194209export const slider : SnippetFunc = (
0 commit comments