Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Nov 26, 2023
1 parent 5b68296 commit ed58407
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions docs/modules/ROOT/pages/neo4j-arc/themes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,32 @@ access to the provided theme, even when they are multiple levels deep.

Themes are passed down to a component using the `theme` prop

Create a file named *themes.ts*:

[source,typescript]
----
export const theme = {
frameSidebarBackground: "transparent",
};
----

Load the themes:

[source,typescript]
----
import { ThemeProvider } from "styled-components";
import { theme } from "./themes";
export default function MyGraphComponent(): JSX.Element {
const themeData = theme;
return (
<ThemeProvider theme={themeData}>
<GraphVisualizer
...
/>
</ThemeProvider>
);
}
----
2 changes: 1 addition & 1 deletion src/neo4j-arc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neo4j-devtools-arc",
"version": "0.0.68",
"version": "0.0.69",
"main": "dist/neo4j-arc.js",
"author": "Neo4j Inc.",
"license": "GPL-3.0",
Expand Down

0 comments on commit ed58407

Please sign in to comment.