From 6b900e4ac4e71256cb15f86589d484731fbd2387 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Thu, 21 Mar 2024 09:42:21 -0300 Subject: [PATCH] remove Vite-specific syntax from codeblock --- packages/pigment-css-react/README.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/packages/pigment-css-react/README.md b/packages/pigment-css-react/README.md index 494b41e8d62291..1dc428d6d4094a 100644 --- a/packages/pigment-css-react/README.md +++ b/packages/pigment-css-react/README.md @@ -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