File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/docs/src/recipes Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ name: 'Gatsby Link'
4
4
5
5
# Gatsby Link
6
6
7
- Add an active style to Gatsby Link or other React router link components.
7
+ Add an active style to [ Gatsby Link] or other React router link components.
8
+ Import the Theme UI [custom JSX pragma ](/ guides / jsx - pragma ) for styling
9
+ the router link components directly, without using wrapper components.
8
10
9
11
``` jsx live
10
12
< Link
@@ -20,6 +22,8 @@ Add an active style to Gatsby Link or other React router link components.
20
22
< / Link>
21
23
```
22
24
25
+ Full code for this example:
26
+
23
27
``` jsx
24
28
/** @jsx jsx */
25
29
import { jsx } from ' theme-ui'
@@ -37,3 +41,5 @@ export default props =>
37
41
}}
38
42
/ >
39
43
```
44
+
45
+ [ Gatsby Link ] : https://www.gatsbyjs.org/docs/linking-between-pages/
You can’t perform that action at this time.
0 commit comments