@synergycodes/overflow-ui
Version:
A React library for creating node-based UIs and diagram-driven applications. Perfect for React Flow users, providing ready-to-use node templates and components that work seamlessly with React Flow's ecosystem.
20 lines (19 loc) • 856 B
TypeScript
import { InputHTMLAttributes } from 'react';
import { SelectorSize } from '../../shared/types/selector-size';
type Props = {
/** The size of the radio button */
size?: SelectorSize;
/** Whether the radio button is checked */
checked?: boolean;
/** The name of the radio button group */
name: string;
/** The value of the radio button */
value: string | number;
/** Callback fired when the radio button state changes */
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'value' | 'name'>;
/**
* A radio button component that allows users to select a single option from a group.
*/
export declare function Radio({ size, className, checked, name, value, onChange, ...props }: Props): import("react/jsx-runtime").JSX.Element;
export {};