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