Skip to content

Commit

Permalink
remove Vite-specific syntax from codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Mar 21, 2024
1 parent 1da85d2 commit 6b900e4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions packages/pigment-css-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -743,17 +743,12 @@ Then the actual CSS output would be:
The default selector in the output CSS is `[dir=rtl]` or `[dir=ltr]`. You can customize it by passing an optional `getDirSelector` method to the `css` property in your bundler config:

```js
plugins: [
pigment({
theme: yourTheme,
css: {
getDirSelector(dir: string) {
// return a custom selector you'd like to use
return `:dir(${dir})`;
},
css: {
getDirSelector(dir: string) {
// return a custom selector you'd like to use
return `:dir(${dir})`;
},
}),
]
},
```

## How-to guides
Expand Down

0 comments on commit 6b900e4

Please sign in to comment.