YesNoFabric component
Component for rendering a yes/no button control.
đ Signatureâ
YesNoFabric(props: {
styles: {
yesColor: string;
noColor: string;
outlineSize?: number;
roundness?: number;
scale?: number;
margin?: number;
alignment?: "horizontal" | "vertical";
};
yes: IYesNo;
no: IYesNo;
required?: boolean;
disabled?: boolean;
readOnly?: boolean;
ariaDescribedBy?: string;
tabIndex?: number;
value?: "" | "yes" | "no" | Value;
autoSubmit?: boolean;
onChange?: (value: "" | "yes" | "no") => void;
onFocus?: (e: FocusEvent) => void;
onBlur?: (e: FocusEvent) => void;
onAutoFocus?: (el: HTMLButtonElement | null) => void;
onSubmit?: () => void;
onCancel?: () => void;
}): JSX.Element