@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
17 lines • 598 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Button = void 0;
const component_1 = require("../../component.cjs");
const TYPE = 'Button';
/**
* A button component, which is used to create a clickable button.
*
* @param props - The props of the component.
* @param props.children - The text to display on the button. This should be a
* string or an array of strings.
* @returns A button element.
* @example
* <Button name="my-button">Click me</Button>
*/
exports.Button = (0, component_1.createSnapComponent)(TYPE);
//# sourceMappingURL=Button.cjs.map