@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
21 lines • 835 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Checkbox = void 0;
const component_1 = require("../../component.cjs");
const TYPE = 'Checkbox';
/**
* A checkbox component, which is used to create a checkbox.
*
* @param props - The props of the component.
* @param props.name - The name of the checkbox. This is used to identify the
* state in the form data.
* @param props.checked - Whether the checkbox is checked or not.
* @param props.label - An optional label for the checkbox.
* @param props.variant - An optional variant for the checkbox.
* @param props.disabled - Whether the checkbox is disabled.
* @returns A checkbox element.
* @example
* <Checkbox name="accept-terms" />
*/
exports.Checkbox = (0, component_1.createSnapComponent)(TYPE);
//# sourceMappingURL=Checkbox.cjs.map