Skip to content

Commit

Permalink
docs: Fix typo in twMerge example of beta installation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemartin committed Nov 8, 2023
1 parent bafcd1f commit 3269b8d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs/beta/src/content/docs/getting-started/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Installation
import { Tabs, TabItem } from "@astrojs/starlight/components";

:::caution
**You are currently viewing the docs for `cva@beta`**
**You are currently viewing the docs for `cva@beta`**
For stable documentation, please visit [cva.style](https://cva.style).
:::

Expand All @@ -25,11 +25,11 @@ For stable documentation, please visit [cva.style](https://cva.style).

</TabItem>
<TabItem label="yarn">

```sh
yarn add cva@beta
```

</TabItem>
</Tabs>

Expand Down Expand Up @@ -129,10 +129,12 @@ export const button = cva({
// 1. `twMerge` strips out `bg-gray-200`…
base: "font-semibold bg-gray-200 border rounded",
variants: {
// 2. …as variant `bg-*` values take precedence
primary: "bg-blue-500 text-white border-transparent hover:bg-blue-600",
secondary: "bg-white text-gray-800 border-gray-400 hover:bg-gray-100",
},
intent: {
// 2. …as variant `bg-*` values take precedence
primary: "bg-blue-500 text-white border-transparent hover:bg-blue-600",
secondary: "bg-white text-gray-800 border-gray-400 hover:bg-gray-100",
},
}
defaultVariants: {
intent: "primary",
},
Expand Down

0 comments on commit 3269b8d

Please sign in to comment.