From 3d1635f764c5627b1100bf9fa4928da436bf823a Mon Sep 17 00:00:00 2001 From: sebashwa Date: Thu, 16 Nov 2023 23:45:43 +0100 Subject: [PATCH 1/6] Add props headings for some components --- docs/Create.md | 2 ++ docs/CreateBase.md | 2 ++ docs/CreateDialog.md | 2 ++ docs/CreateInDialogButton.md | 2 ++ docs/Edit.md | 2 ++ docs/EditBase.md | 2 ++ docs/EditDialog.md | 4 +++- docs/SaveButton.md | 2 ++ docs/Toolbar.md | 2 ++ 9 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/Create.md b/docs/Create.md index 6190ab2cdd9..4b0f91acd67 100644 --- a/docs/Create.md +++ b/docs/Create.md @@ -50,6 +50,8 @@ const App = () => ( export default App; ``` +## Props + You can customize the `` component using the following props: * [`actions`](#actions): override the actions toolbar with a custom component diff --git a/docs/CreateBase.md b/docs/CreateBase.md index 73e9d1ce7f5..efc0afe6391 100644 --- a/docs/CreateBase.md +++ b/docs/CreateBase.md @@ -38,6 +38,8 @@ export const BookCreate = () => ( ); ``` +## Props + You can customize the `` component using the following props, documented in the `` component: * `children`: the components that renders the form diff --git a/docs/CreateDialog.md b/docs/CreateDialog.md index eb92cc880e6..324659d7cbb 100644 --- a/docs/CreateDialog.md +++ b/docs/CreateDialog.md @@ -57,6 +57,8 @@ In the related ``, you don't need to declare a `create` component as t **Note**: You can't use the `` and have a standard `` specified on your ``, because the `` declarations would conflict. If you need this, use the [``](./CreateInDialogButton.md) instead. +## Props + `` accepts the same props as the [``](./Create.md) component, and the same type of children (e.g. a [``](./SimpleForm.md) element). * `children`: the components that renders the form diff --git a/docs/CreateInDialogButton.md b/docs/CreateInDialogButton.md index b5dd02e3320..c7809ab29e4 100644 --- a/docs/CreateInDialogButton.md +++ b/docs/CreateInDialogButton.md @@ -63,6 +63,8 @@ const CompanyShow = () => ( In the above example, `` is used to create a new employee for the current company. [The `` component](./WithRecord.md) helps to set the new employee company id by default. +## Props + `` accepts the following props: * `inline`: set to true to display only a Material UI `` instead of the full `