Skip to content

Commit f043f7c

Browse files
fix: improved chakra-ui docs to fix rjsf-team#2863
- Updated `chakra-ui/uiSchema.md` to make it clear that the special `chakra` section of `ui:options` are on a per-field basis
1 parent f98e6df commit f043f7c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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)