Skip to content

Commit 0673943

Browse files
committed
Add initialValue to component api page
1 parent 35f755d commit 0673943

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-renderer-demo/src/docs-components/component-api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { NavLink } from 'react-router-dom';
12
import ExampleLink from './component-api/exampleLink';
23

34
### Components API
@@ -35,6 +36,7 @@ All those components provides a shared group of props:
3536
|isRequired|boolean|Is the field required?|
3637
|isDisabled|boolean|Is the field disabled?|
3738
|isReadOnly|boolean|Is the field readOnly?|
39+
|initialValue|custom|There are two ways how to set initial values in the form: you can use either the <NavLink to="/renderer/renderer-api">initialValues</NavLink> prop for the whole form or you can set the value in the schema for each field separately. For more information, please see [here](https://final-form.org/docs/react-final-form/types/FieldProps#initialvalue).|
3840

3941
#### Text field
4042

0 commit comments

Comments
 (0)