--- title: LinkBox description: "`LinkBox` is a component that allows elements such as articles or cards to function as a single link." links: - style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/link-box/link-box.style.ts - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/link-box - storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-linkbox--basic --- ```tsx 荒川弘 鋼の錬金術師 『鋼の錬金術師』(FULL METAL ALCHEMIST)は、荒川弘による日本の漫画作品。『月刊少年ガンガン』(スクウェア・エニックス)において、2001年8月号から2010年7月号まで連載された。全108話。同年10月号には番外編が掲載された。略称は「ハガレン」。 ``` ## Usage ```tsx import { LinkBox } from "@yamada-ui/react" ``` ```tsx import { LinkBox } from "@/components/ui" ``` ```tsx import { LinkBox } from "@workspaces/ui" ``` ```tsx ``` ### Nested Links ```tsx 荒川弘 鋼の錬金術師 『鋼の錬金術師』(FULL METAL ALCHEMIST)は、荒川弘による日本の漫画作品。『月刊少年ガンガン』(スクウェア・エニックス)において、2001年8月号から2010年7月号まで連載された。全108話。同年10月号には番外編が掲載された。略称は「ハガレン」。 TVアニメオフィシャルサイト ``` ## Props ### LinkBox.Root | 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. | ### LinkBox.Overlay | 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. | | `external` | `false` | `boolean` | If `true`, the link will open in new tab. |