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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,10 @@ Defaults to `true`. Opt-out of animations with `false`
74
74
75
75
Defaults to `Loading interface...`. It's used to describe what element it is. Use `false` to remove.
76
76
77
+
**`baseUrl? string`**
78
+
79
+
Required if you're using `<base url="/" />` in your `<head/>`. Defaults to an empty string. This prop is commom used as: `<ContentLoader baseUrl={window.location.pathname} />` which will fill the svg attribute with the relative path. Related [#93](https://github.com/danilowoz/react-content-loader/issues/93).
Copy file name to clipboardExpand all lines: docs/props.mdx
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,14 @@ Defaults to `Loading interface...`. It's used to describe what element it is. Us
22
22
<FacebookariaLabel="my custom loader" />
23
23
</Playground>
24
24
25
+
## **`baseUrl? string`**
26
+
27
+
Required if you're using `<base url="/" />` in your `<head/>`. Defaults to an empty string. This prop is commom used as: `<ContentLoader baseUrl={window.location.pathname} />` which will fill the svg attribute with the relative path. Related [#93](https://github.com/danilowoz/react-content-loader/issues/93).
0 commit comments