@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
18 lines • 642 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Link = void 0;
const component_1 = require("../component.cjs");
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>
*/
exports.Link = (0, component_1.createSnapComponent)(TYPE);
//# sourceMappingURL=Link.cjs.map