UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

16 lines 645 B
import { createSnapComponent } from "../../component.mjs"; 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 /> */ export const RadioGroup = createSnapComponent(TYPE); //# sourceMappingURL=RadioGroup.mjs.map