--- title: Link description: "`Link` is a component for creating hyperlinks to different web pages, locations within the same page, or other URLs." links: - style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/link/link.style.ts - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/link - storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-link--basic --- # Link `Link` is a component for creating hyperlinks to different web pages, locations within the same page, or other URLs. ```tsx ドラゴンボール - wikipedia ``` ## Usage ```tsx import { Link } from "@yamada-ui/react" ``` ```tsx import { Link } from "@/components/ui" ``` ```tsx import { Link } from "@workspaces/ui" ``` ```tsx ``` :::tip If your framework provides a link component, set `as={FrameworkLink}` on `Link`. For integration details, see the [documentation for each framework](https://yamada-ui.com/docs/get-started.md#pick-your-framework). ::: :::tip To use an entire element as a link, use [LinkBox](https://yamada-ui.com/docs/components/link-box.md). ::: ### Change variant ```tsx {(variant) => ( ドラゴンボール - wikipedia )} ``` ### Change Color Scheme ```tsx {(colorScheme) => ( ドラゴンボール - wikipedia )} ``` ### External Links ```tsx ドラゴンボール - wikipedia ``` ## Props | Prop | Default | Type | Description | | ------------- | --------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | | `as` | - | `As` | The HTML element to render. | | `asChild` | - | `boolean` | Merges its props onto its immediate child. | | `css` | - | `CSSObject \| CSSObject[]` | The CSS object. | | `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. | | `variant` | `"plain"` | `"plain" \| "underline"` | The variant of the component. | | `external` | `false` | `boolean` | If `true`, the link will open in new tab. | ## Similar Components - [Blockquote](https://yamada-ui.com/docs/components/blockquote.md): `Blockquote` is a component that represents a quotation. By default, it renders a `blockquote` element. - [Code](https://yamada-ui.com/docs/components/code.md): `Code` is a component that represents a code block. By default, it renders a `code` element. - [Em](https://yamada-ui.com/docs/components/em.md): `Em` is a component that represents emphasized text. By default, it renders a `em` element. - [Heading](https://yamada-ui.com/docs/components/heading.md): `Heading` is a component that represents section headings. By default, it renders an `h1` element. - [Highlight](https://yamada-ui.com/docs/components/highlight.md): `Highlight` is a component that highlights specified strings within text. By default, it renders a `p` element. - [Kbd](https://yamada-ui.com/docs/components/kbd.md): `Kbd` is a component that represents keyboard input. - [Mark](https://yamada-ui.com/docs/components/mark.md): `Mark` is a component that emphasizes a specific part of the text. - [Prose](https://yamada-ui.com/docs/components/prose.md): `Prose` is a component that styles HTML content.