nudge-components-library
Version:
A library of nudge UI components
21 lines • 901 B
TypeScript
import React from "react";
import "../../styles/tokens.css";
import "../../styles/globals.css";
export type CheckboxProps = {
checkboxLabel?: string;
label: string;
checked?: boolean;
defaultChecked?: boolean;
onChange?: (checked: boolean) => void;
disabled?: boolean;
nudgeText?: string;
id?: string;
ariaLabel?: string;
onFocus?: React.FocusEventHandler<HTMLInputElement>;
onBlur?: React.FocusEventHandler<HTMLInputElement>;
nudgeVisible?: boolean;
nudgePosition?: "top" | "bottom" | "left" | "right";
renderNudge?: (checked: boolean) => React.ReactNode;
};
export declare function Checkbox({ checkboxLabel, label, checked, defaultChecked, onChange, disabled, nudgeText, id, ariaLabel, onFocus, onBlur, nudgeVisible, nudgePosition, renderNudge, }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Checkbox.d.ts.map