Skip to content

Commit

Permalink
Join snippet on interp
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Nov 22, 2024
1 parent 96a8f9e commit f5f3db9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/website/site/pages/reference/interpolation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,12 @@ Interpolation is one of the most powerful and useful patterns in styled-ppx. You
```rescript
module Component = %styled.div(`
border: 1px solid $(Theme.black);
`)
```
```reason
module Component = [%styled.div {|
border: 1px solid $(Theme.black);
|}];
```
```rescript
module Component = %styled.div(`
max-width: $(maxWidth);
`)
```
```reason
module Component = [%styled.div {|
border: 1px solid $(Theme.black);
max-width: $(maxWidth);
|}];
```
Expand Down

0 comments on commit f5f3db9

Please sign in to comment.