Files
reacord/packages/website/app/routes/guides/links.md
2022-01-11 00:33:13 -06:00

561 B

order, meta
order meta
3
title description
Links 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.

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 for more information.