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
type={"Theme"}/> // type of document to display in form
153
158
```
154
159
### Theme Selector
155
-
FrameViewer is based on [Bootswatch](https://bootswatch.com/cosmo/) Themes. Use props ``theme`` in ``<FrameViewer/>`` component to change themes at an application level.
160
+
FrameViewer is based on [Bootswatch](https://bootswatch.com/cosmo/) Themes. Use props ``theme`` in ``<FrameViewer/>`` component to change themes at an application level. Note that if using ``theme`` parameter in FrameViewers the css will change at an application level. If the preference is to just alter the look & feel of the FrameViwer in a project then the ``<FrameViewer/>`` component is shipped with a dark mode and a light mode.
161
+
162
+
156
163
```
157
164
import { FrameViewer } from '@terminusdb/terminusdb-documents-ui'
158
165
return <FrameViewer
159
166
frame={frame} // frames
160
-
mode={"View"} // mode in which to display the form
161
-
onTraverse={handleTraverse} // Callback traverse links function
167
+
mode={"View"} // mode in which to display the form
168
+
onTraverse={handleTraverse} // Callback traverse links function
162
169
formData={data} // instance data
163
170
theme="darkly" // pass a bootswatch theme - like darkly/ pulse
164
171
type={"Theme"}/> // type of document to display in form
165
172
```
166
173
174
+
```
175
+
import { FrameViewer } from '@terminusdb/terminusdb-documents-ui'
176
+
return <FrameViewer
177
+
frame={frame} // frames
178
+
mode={"View"} // mode in which to display the form
179
+
onTraverse={handleTraverse} // Callback traverse links function
180
+
formData={data} // instance data
181
+
theme="minty" // pass a bootswatch theme - like darkly/ pulse
182
+
type={"Theme"}/> // type of document to display in form
183
+
```
184
+
167
185
A Theme selector can also be enabled by passing ``showThemeSelector={true}``
168
186
```
169
187
import { FrameViewer } from '@terminusdb/terminusdb-documents-ui'
0 commit comments