UNPKG

@excalidraw/math

Version:

Excalidraw math functions

21 lines (20 loc) 649 B
import type { JSX } from "react"; export declare const RadioSelection: <T extends Object>(props: { options: { value: T; text: string; icon: JSX.Element; testId?: string | undefined; /** if not supplied, defaults to value identity check */ active?: boolean | undefined; }[]; value: T | null; type?: "button" | "radio" | undefined; } & ({ type?: "radio" | undefined; group: string; onChange: (value: T) => void; } | { type: "button"; onClick: (value: T, event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void; })) => import("react/jsx-runtime").JSX.Element;