Skip to content

Commit 2887d47

Browse files
Merge pull request #15 from littlecinemadigital/docs
docs: add initial docs
2 parents 686bc4c + 68e9152 commit 2887d47

File tree

5 files changed

+146
-14
lines changed

5 files changed

+146
-14
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
[![Contributors][contributors-shield]][contributors-url]
33
[![Apache 2.0 License][license-shield]][license-url]
44

5-
65
<p align="center">
76
<a href="https://github.com/rjsf-team/react-jsonschema-form">
87
<img src="https://raw.githubusercontent.com/rjsf-team/react-jsonschema-form/59a8206e148474bea854bbb004f624143fbcbac8/packages/core/logo.png" alt="Logo" width="180" height="120">
@@ -26,7 +25,6 @@
2625

2726
[![playground animation](https://i.imgur.com/M8ZCES5.gif)](https://rjsf-team.github.io/react-jsonschema-form/)
2827

29-
3028
## Supported Themes
3129

3230
- [Ant Design](https://github.com/rjsf-team/react-jsonschema-form/tree/master/packages/antd)
@@ -35,22 +33,25 @@
3533
- [Fluent UI](https://github.com/rjsf-team/react-jsonschema-form/tree/master/packages/fluent-ui)
3634
- [Material UI](https://github.com/rjsf-team/react-jsonschema-form/tree/master/packages/material-ui)
3735
- [Semantic UI](https://github.com/rjsf-team/react-jsonschema-form/tree/master/packages/semantic-ui)
36+
- [Chakra UI](https://github.com/rjsf-team/react-jsonschema-form/tree/master/packages/chakra-ui)
3837

3938
## Documentation
39+
4040
Read our [documentation](https://react-jsonschema-form.readthedocs.io/en/latest/) on Read the Docs.
4141

4242
## Live Playground
43+
4344
A [live playground](https://rjsf-team.github.io/react-jsonschema-form/) is hosted on gh-pages.
4445

4546
## Contributing
47+
4648
Read our [contributors' guide](https://react-jsonschema-form.readthedocs.io/en/latest/contributing/) to get started.
4749

4850
## Credits
4951

5052
Testing powered by BrowserStack<br>
5153
<a target="_blank" href="https://www.browserstack.com/"><img width="200" src="https://user-images.githubusercontent.com/1689183/51487090-4ea04f80-1d57-11e9-9a91-79b7ef8d2013.png"></a>
5254

53-
5455
[build-shield]: https://github.com/rjsf-team/react-jsonschema-form/workflows/CI/badge.svg
5556
[build-url]: https://github.com/rjsf-team/react-jsonschema-form/actions
5657
[contributors-shield]: https://img.shields.io/github/contributors/rjsf-team/react-jsonschema-form.svg

docs/usage/themes.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ meaning that you must load the Bootstrap stylesheet on the page to view the form
55

66
## Supported themes
77

8-
Theme Name | Status | Package Name / Link
9-
---------- | ------- | -----------
10-
Bootstrap 3 (default) | Published | `@rjsf/core`
11-
Bootstrap 4 | Published | `@rjsf/bootstrap-4`
12-
material-ui | Published | `@rjsf/material-ui`
13-
fluent-ui | Published | `@rjsf/fluent-ui`
14-
antd | Published | `@rjsf/antd`
15-
Semantic UI | Published | `@rjsf/semantic-ui`
16-
8+
| Theme Name | Status | Package Name / Link |
9+
| --------------------- | --------- | ------------------- |
10+
| Bootstrap 3 (default) | Published | `@rjsf/core` |
11+
| Bootstrap 4 | Published | `@rjsf/bootstrap-4` |
12+
| material-ui | Published | `@rjsf/material-ui` |
13+
| fluent-ui | Published | `@rjsf/fluent-ui` |
14+
| antd | Published | `@rjsf/antd` |
15+
| Semantic UI | Published | `@rjsf/semantic-ui` |
16+
| Chakra UI | Published | `@rjsf/chakra-ui` |
1717

1818
## Using themes
1919

packages/chakra-ui/README.md

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
[![Build Status][build-shield]][build-url]
2+
[![npm][npm-shield]][npm-url]
3+
[![npm downloads][npm-dl-shield]][npm-dl-url]
4+
[![Contributors][contributors-shield]][contributors-url]
5+
[![Apache 2.0 License][license-shield]][license-url]
6+
7+
<!-- PROJECT LOGO -->
8+
<br />
9+
<p align="center">
10+
<a href="https://github.com/rjsf-team/react-jsonschema-form">
11+
<img src="./logo.png" alt="Logo" width="340">
12+
</a>
13+
14+
<h3 align="center">@rjsf/rjsf-chakra-ui</h3>
15+
16+
<p align="center">
17+
Chakra UI theme, fields and widgets for <a href="https://github.com/rjsf-team/react-jsonschema-form/"><code>react-jsonschema-form</code></a>.
18+
<br />
19+
<a href="https://react-jsonschema-form.readthedocs.io/en/latest/"><strong>Explore the docs »</strong></a>
20+
<br />
21+
<br />
22+
<a href="https://rjsf-team.github.io/react-jsonschema-form/">View Playground</a>
23+
·
24+
<a href="https://github.com/rjsf-team/react-jsonschema-form/issues">Report Bug</a>
25+
·
26+
<a href="https://github.com/rjsf-team/react-jsonschema-form/issues">Request Feature</a>
27+
</p>
28+
</p>
29+
30+
<!-- TABLE OF CONTENTS -->
31+
32+
## Table of Contents
33+
34+
- [Table of Contents](#table-of-contents)
35+
- [About The Project](#about-the-project)
36+
- [Built With](#built-with)
37+
- [Getting Started](#getting-started)
38+
- [Prerequisites](#prerequisites)
39+
- [Installation](#installation)
40+
- [Usage](#usage)
41+
- [Roadmap](#roadmap)
42+
- [Contributing](#contributing)
43+
- [Contact](#contact)
44+
45+
<!-- ABOUT THE PROJECT -->
46+
47+
## About The Project
48+
49+
[![@rjsf/chakra-ui Screen Shot][product-screenshot]](https://rjsf-team.github.io/@rjsf/chakra-ui)
50+
51+
Exports `chakra-ui` theme, fields and widgets for `react-jsonschema-form`.
52+
53+
### Built With
54+
55+
- [react-jsonschema-form](https://github.com/rjsf-team/react-jsonschema-form/)
56+
- [Chakra UI](https://chakra-ui.com/)
57+
- [TypeScript](https://www.typescriptlang.org/)
58+
59+
<!-- GETTING STARTED -->
60+
61+
## Getting Started
62+
63+
### Prerequisites
64+
65+
- `@chakra-ui/react >= 1.7.0`
66+
- `react >= 16.0.0`
67+
- `@rjsf/core >= 2.0.0`
68+
69+
```bash
70+
yarn add @chakra-ui/react
71+
```
72+
73+
### Installation
74+
75+
```bash
76+
yarn add @rsjf/chakra-ui @rsjf/core
77+
```
78+
79+
<!-- USAGE EXAMPLES -->
80+
81+
## Usage
82+
83+
```js
84+
import Form from "@rsjf/chakra-ui";
85+
```
86+
87+
or
88+
89+
```js
90+
import { withTheme } from "@rjsf/core";
91+
import { Theme as ChakraUITheme } from "@rsjf/chakra-ui";
92+
93+
// Make modifications to the theme with your own fields and widgets
94+
95+
const Form = withTheme(ChakraUITheme);
96+
```
97+
98+
<!-- ROADMAP -->
99+
100+
## Roadmap
101+
102+
See the [open issues](https://github.com/rjsf-team/react-jsonschema-form/issues) for a list of proposed features (and known issues).
103+
104+
<!-- CONTRIBUTING -->
105+
106+
## Contributing
107+
108+
Read our [contributors' guide](https://react-jsonschema-form.readthedocs.io/en/latest/contributing/) to get started.
109+
110+
<!-- CONTACT -->
111+
112+
## Contact
113+
114+
rjsf team: [https://github.com/orgs/rjsf-team/people](https://github.com/orgs/rjsf-team/people)
115+
116+
GitHub repository: [https://github.com/rjsf-team/react-jsonschema-form](https://github.com/rjsf-team/react-jsonschema-form)
117+
118+
<!-- MARKDOWN LINKS & IMAGES -->
119+
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
120+
121+
[build-shield]: https://github.com/rjsf-team/react-jsonschema-form/workflows/CI/badge.svg
122+
[build-url]: https://github.com/rjsf-team/react-jsonschema-form/actions
123+
[contributors-shield]: https://img.shields.io/github/contributors/rjsf-team/react-jsonschema-form.svg
124+
[contributors-url]: https://github.com/rjsf-team/react-jsonschema-form/graphs/contributors
125+
[license-shield]: https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat-square
126+
[license-url]: https://choosealicense.com/licenses/apache-2.0/
127+
[npm-shield]: https://img.shields.io/npm/v/@rjsf/material-ui/latest.svg?style=flat-square
128+
[npm-url]: https://www.npmjs.com/package/@rjsf/material-ui
129+
[npm-dl-shield]: https://img.shields.io/npm/dm/@rjsf/material-ui.svg?style=flat-square
130+
[npm-dl-url]: https://www.npmjs.com/package/@rjsf/material-ui
131+
[product-screenshot]: https://raw.githubusercontent.com/rjsf-team/react-jsonschema-form/59a8206e148474bea854bbb004f624143fbcbac8/packages/material-ui/screenshot.png

packages/chakra-ui/logo.png

11.8 KB
Loading

packages/chakra-ui/src/Theme/Theme.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ const SubmitButton = () => (
2727
const Theme: ThemeProps = {
2828
children: <SubmitButton />,
2929
ArrayFieldTemplate,
30-
fields: { ...fields, ...Fields },
3130
FieldTemplate,
3231
ObjectFieldTemplate,
33-
widgets: { ...widgets, ...Widgets },
3432
ErrorList,
33+
fields: { ...fields, ...Fields },
34+
widgets: { ...widgets, ...Widgets },
3535
};
3636

3737
export default Theme;

0 commit comments

Comments
 (0)