Skip to content

Commit

Permalink
feat(content): create wavy doc
Browse files Browse the repository at this point in the history
  • Loading branch information
codingcodax committed Sep 29, 2024
1 parent f92b0b1 commit 5da753f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions apps/www/content/docs/mini/links/wavy.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: Wavy
description: Flick effect on hover
---

<ComponentPreview name='wavy'>
```json doc-gen:file
{
"file": "./src/components/demos/Wavy/Wavy.tsx",
"codeblock": true
}
```
</ComponentPreview>

## Installation

<Steps>

<Step>
### Download the svg

Download the [`wavy.svg`](/wavy.svg) file.

</Step>

<Step>
### Change stroke color

Change the stroke color of the `path` to your desired hover color.

```diff
<pattern id="wavePattern" width="80" height="80" x="0" y="0" patternUnits="userSpaceOnUse">
-- <path ... stroke="#B1AFB8" ... />
++ <path ... stroke="#6E56CF" ... />
</pattern>
```

</Step>

</Steps>

0 comments on commit 5da753f

Please sign in to comment.