We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1882fa0 commit 3852202Copy full SHA for 3852202
src/components/Docson.res
@@ -7,6 +7,9 @@ type t
7
@module("docson") @scope("default")
8
external doc: (string, JSON.t, option<string>, string) => unit = "doc"
9
10
+@module("../../styles/docson.css?url")
11
+external docsonCss: string = "default"
12
+
13
@react.component
14
let make = (~tag) => {
15
let element = React.useRef(Nullable.null)
@@ -37,5 +40,8 @@ let make = (~tag) => {
37
40
38
41
None
39
42
}, [])
- <div ref={ReactDOM.Ref.domRef(element)} id="docson-root" />
43
+ <>
44
+ <link rel="stylesheet" href={docsonCss} />
45
+ <div ref={ReactDOM.Ref.domRef(element)} id="docson-root" />
46
+ </>
47
}
0 commit comments