File tree 1 file changed +13
-0
lines changed
site/src/modules/workspaces/DynamicParameter
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import {
24
24
} from "components/Select/Select" ;
25
25
import { Slider } from "components/Slider/Slider" ;
26
26
import { Switch } from "components/Switch/Switch" ;
27
+ import { Textarea } from "components/Textarea/Textarea" ;
27
28
import {
28
29
Tooltip ,
29
30
TooltipContent ,
@@ -301,6 +302,18 @@ const ParameterField: FC<ParameterFieldProps> = ({
301
302
/>
302
303
) ;
303
304
305
+ case "textarea" :
306
+ return (
307
+ < Textarea
308
+ defaultValue = { defaultValue }
309
+ onChange = { ( e ) => onChange ( e . target . value ) }
310
+ disabled = { disabled }
311
+ placeholder = {
312
+ ( parameter . styling as { placeholder ?: string } ) ?. placeholder
313
+ }
314
+ />
315
+ ) ;
316
+
304
317
case "input" : {
305
318
const inputType = parameter . type === "number" ? "number" : "text" ;
306
319
const inputProps : Record < string , unknown > = { } ;
You can’t perform that action at this time.
0 commit comments