Skip to content

Commit 1189fd2

Browse files
fix: improved chakra-ui docs to fix #2863 (#3125)
- Updated `chakra-ui/uiSchema.md` to make it clear that the special `chakra` section of `ui:options` are on a per-field basis - Updated `CHANGELOG.md` accordingly`
1 parent 0f442c2 commit 1189fd2

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ should change the heading of the (upcoming) version to include a major version b
3434
- Updated the `custom-templates.md` file to add the missing asterisk to the new `FieldErrorTemplate` and `FieldHelpTemplate`
3535
- Updated the playground to add a new button for programmatically validating a form
3636
- Also updated the `validation.md` documentation to describe how to programmatically validate a form
37+
- Fixed the `chakra-ui` custom `uiSchema` documentation to make it clear they work on a per-field basis, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2865)
3738

3839
# 5.0.0-beta.8
3940

docs/api-reference/themes/chakra-ui/uiSchema.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ When using `@rjsf/chakra-ui` there are a couple of ways to customize the feel of
44

55
## Styling
66

7-
You can use `ChakraProvider`, where you can customize the components at a theme level.\
7+
You can use `ChakraProvider`, where you can customize the field components at a theme level.
88
And, `uiSchema` allows for the use of a `"chakra"` `"ui:option"` to customize the styling of the form widgets.
99

1010
```json
1111
{
12-
"ui:options": {
13-
"chakra": {
14-
"p": "1rem",
15-
"color": "blue.200",
16-
"sx": {
17-
"margin": "0 auto"
12+
"yourField": {
13+
"ui:options": {
14+
"chakra": {
15+
"p": "1rem",
16+
"color": "blue.200",
17+
"sx": {
18+
"margin": "0 auto"
19+
}
1820
}
1921
}
2022
}

0 commit comments

Comments
 (0)