UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

19 lines 756 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RadioGroup = void 0; const component_1 = require("../../component.cjs"); const TYPE = 'RadioGroup'; /** * A RadioGroup component, used to display multiple choices, where only one can be chosen. * * @param props.name - The name of the dropdown. This is used to identify the * state in the form data. * @param props.value - The value of the radio group element. * @param props.children - Radio options in form of <Radio> elements. * @param props.disabled - Whether the radio group is disabled. * @returns A RadioGroup element. * @example * <RadioGroup /> */ exports.RadioGroup = (0, component_1.createSnapComponent)(TYPE); //# sourceMappingURL=RadioGroup.cjs.map