diff --git a/docs/api/arg-types.md b/docs/api/arg-types.md index e70678c9877e..746f149294ac 100644 --- a/docs/api/arg-types.md +++ b/docs/api/arg-types.md @@ -82,7 +82,7 @@ Type: ```ts { [key: string]: { - control?: ControlType | { type: ControlType; /* See below for more */ }; + control?: ControlType | { type: ControlType; /* See below for more */ } | false; description?: string; if?: Conditional; mapping?: { [key: string]: { [option: string]: any } }; @@ -116,6 +116,7 @@ Type: presetColors?: string[]; step?: number; } +| false ``` Default: @@ -124,7 +125,7 @@ Default: 2. Else, inferred from [`type`](#type) 3. Else, `'object'` -Specify the behavior of the [controls addon](../essentials/controls.md) for the arg. If you specify a string, it's used as the [`type`](#controltype) of the control. If you specify an object, you can provide additional configuration. +Specify the behavior of the [controls addon](../essentials/controls.md) for the arg. If you specify a string, it's used as the [`type`](#controltype) of the control. If you specify an object, you can provide additional configuration. Specifying `false` will prevent the control from rendering. @@ -345,6 +346,7 @@ Type: detail?: string; summary: string; }; + disable?: boolean; subcategory?: string; type?: { detail?: string; @@ -387,6 +389,12 @@ Default: [Inferred](#automatic-argtype-inference) The documented default value of the argType. `summary` is typically used for the value itself, while `detail` is used for additional information. +#### `table.disable` + +Type: `boolean` + +Set to `true` to remove the argType's row from the table. + #### `table.subcategory` Type: `string`