import React from "react"; import classNames from "classnames"; import styles from "./LinkTile.module.css"; import { Icon } from "@arc-ui/components/Icon"; import { BtIconArrowAltRight } from "@arc-ui/icons/BtIconArrowAltRight"; export const LinkTile: React.FC = ({ text, href, showIcon = true, tone = "brand", className, ...props }) => { const Component = href ? "a" : "div"; const linkProps = href ? { href } : {}; return ( )} > {text && (
{text} {showIcon && ( )}
)}
); }; export interface LinkTileProps extends React.HTMLAttributes { /** Display text for the tile */ text?: string; /** URL the tile navigates to. Renders as an anchor tag when provided */ href?: string; /** Whether to show the arrow icon. Defaults to true */ showIcon?: boolean; /** Visual tone variant. Defaults to brand */ tone?: "brand" | "neutral"; }