You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/arg-types.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -124,8 +124,8 @@ Default: [Inferred](#automatic-argtype-inference); `'select'`, if [`options`](#o
124
124
125
125
Specifies the type of control used to change the arg value with the [controls addon](../essentials/controls.mdx). Here are the available types, `ControlType`, grouped by the type of data they handle:
|**array**|`'object'`| Provides a JSON-based editor to handle the values of the array. Also allows editing in raw mode.<br /> `{ control: 'object' }`|
130
130
|**boolean**|`'boolean'`| Provides a toggle for switching between possible states.<br /> `{ control: 'boolean' }`|
131
131
|**enum**|`'check'`| Provides a set of stacked checkboxes for selecting multiple options.<br /> `{ control: 'check', options: ['email', 'phone', 'mail'] }`|
@@ -139,7 +139,7 @@ Specifies the type of control used to change the arg value with the [controls ad
139
139
|**object**|`'file'`| Provides a file input that returns an array of URLs. Can be further customized to accept specific file types.<br /> `{ control: { type: 'file', accept: '.png' } }`|
140
140
||`'object'`| Provides a JSON-based editor to handle the object's values. Also allows editing in raw mode.<br /> `{ control: 'object' }`|
141
141
|**string**|`'color'`| Provides a color picker to choose color values. Can be additionally configured to include a set of color presets.<br /> `{ control: { type: 'color', presetColors: ['red', 'green']} }`|
142
-
||`'date'`| Provides a datepicker to choose a date.<br /> `{ control: 'date' }`|
142
+
||`'date'`| Provides a datepicker to choose a date.<br /> `{ control: 'date' }`|
143
143
||`'text'`| Provides a freeform text input.<br /> `{ control: 'text' }`|
0 commit comments