add links doc
This commit is contained in:
25
packages/docs/app/routes/guides/links.md
Normal file
25
packages/docs/app/routes/guides/links.md
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
order: 3
|
||||||
|
meta:
|
||||||
|
title: Links
|
||||||
|
description: Using link components
|
||||||
|
---
|
||||||
|
|
||||||
|
# Links
|
||||||
|
|
||||||
|
In Discord, links are a type of button, and they work similarly. Clicking on it leads you to the given URL. They only have one style, and can't be listened to for clicks.
|
||||||
|
|
||||||
|
```jsx
|
||||||
|
import { Link } from "reacord"
|
||||||
|
|
||||||
|
function AwesomeLinks() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Link label="look at this" url="https://google.com" />
|
||||||
|
<Link label="wow" url="https://youtube.com/watch?v=dQw4w9WgXcQ" />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
See the [API reference](/api) for more information.
|
||||||
Reference in New Issue
Block a user