UNPKG

@excalidraw/excalidraw

Version:
15 lines (14 loc) 443 B
/// <reference types="react" /> import "./RadioGroup.scss"; export type RadioGroupChoice<T> = { value: T; label: React.ReactNode; ariaLabel?: string; }; export type RadioGroupProps<T> = { choices: RadioGroupChoice<T>[]; value: T; onChange: (value: T) => void; name: string; }; export declare const RadioGroup: <T>({ onChange, value, choices, name, }: RadioGroupProps<T>) => import("react/jsx-runtime").JSX.Element;