@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
15 lines • 537 B
JavaScript
import { createSnapComponent } from "../component.mjs";
const TYPE = 'Link';
/**
* A link component, which is used to display a hyperlink.
*
* @param props - The props of the component.
* @param props.children - The text to display in the link.
* @param props.href - The URL to link to. This must be an `https` or `mailto`
* URL. `http` is not allowed.
* @returns A link element.
* @example
* <Link href="https://example.com">Click here</Link>
*/
export const Link = createSnapComponent(TYPE);
//# sourceMappingURL=Link.mjs.map