@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
15 lines • 515 B
JavaScript
import { createSnapComponent } from "../../component.mjs";
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>
* @category Components
*/
export const Button = createSnapComponent(TYPE);
//# sourceMappingURL=Button.mjs.map