You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -924,7 +924,7 @@ Your `translations` object doesn't have to be exhaustive — only define the key
924
924
You can replace certain nodes in the data tree with your own custom components. An example might be for an image display, or a custom date editor, or just to add some visual bling. See the "Custom Nodes" data set in the [interactive demo](https://carlosnz.github.io/json-edit-react/?data=customNodes) to see it in action. (There is also a custom Date picker that appears when editing ISO strings in the other data sets.)
925
925
926
926
> [!TIP]
927
-
> There are a selection of useful Custom components ready for you to use in my [Custom Component Library](https://github.com/CarlosNZ/json-edit-react/blob/main/custom-component-library/README.md).
927
+
> There are a selection of useful Custom components ready for you to use in my [Custom Component Library](https://github.com/CarlosNZ/json-edit-react/blob/main/custom-component-library/README.md) — see examples in the [Demo app](https://carlosnz.github.io/json-edit-react/?data=customComponentLibrary).
928
928
> Please contribute your own if you think they'd be useful to others.
929
929
930
930
Custom nodes are provided in the `customNodeDefinitions` prop, as an array of objects of following structure:
Copy file name to clipboardExpand all lines: custom-component-library/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ Eventually, I'd like to publish these in a separate package so you can easily im
10
10
11
11
Contains a [Vite](https://vite.dev/) web-app for previewing and developing components.
12
12
13
-
The individual components are in the `/components` folder, along with demo data (in `data.ts`).
13
+
The individual components are in the `/components` folder.
14
+
15
+
There is a React app provided for demo-ing and testing these components -- [Development](#development) below.
14
16
15
17
> [!NOTE]
16
18
> If you create a custom component that you think would be useful to others, please [create a PR](https://github.com/CarlosNZ/json-edit-react/pulls) for it.
0 commit comments