From d384ac90257ba13114fa131757ad99867bcfacc4 Mon Sep 17 00:00:00 2001 From: Caleb Date: Tue, 16 Jan 2018 18:19:16 -0700 Subject: [PATCH] =?UTF-8?q?Update=20Docs=20=E2=80=9Ccustom-widgets?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/site/content/docs/custom-widgets.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/site/content/docs/custom-widgets.md b/website/site/content/docs/custom-widgets.md index cdd18a02..6270e2a2 100644 --- a/website/site/content/docs/custom-widgets.md +++ b/website/site/content/docs/custom-widgets.md @@ -32,9 +32,9 @@ CMS.registerWidget(name, control, [preview]); | Param | Type | Description | | ----------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | string | Widget name, allows this widget to be used via the field `widget` property in config | -| `control` | React.Component | | -| [`preview`] | React.Component, optional | Renders the widget preview, receives the following props: | +| `name` | `string` | Widget name, allows this widget to be used via the field `widget` property in config | +| `control` | `React.Component` or `string`| | +| [`preview`] | `React.Component`, optional | Renders the widget preview, receives the following props: | * **field:** The field type that this widget will be used for. * **control:** A React component that renders the editing interface for this field. Two props will be passed: