UNPKG

@coconut-software/ui

Version:

React components for faster and easier web development.

15 lines (14 loc) 673 B
import type { ChangeEventHandler, PropsWithChildren, Ref } from 'react'; import type { RadioInputColor, RadioInputSize } from './RadioContext'; interface RadioInputProps { 'aria-label'?: string; color?: RadioInputColor; disabled?: boolean; inputRef?: Ref<HTMLInputElement>; name?: string; onChange?: ChangeEventHandler<HTMLInputElement>; size?: RadioInputSize; value: string | number; } declare function Input({ 'aria-label': label, children, color: passedColor, disabled: passedDisabled, inputRef, name: passedName, onChange, size: passedSize, value, }: PropsWithChildren<RadioInputProps>): JSX.Element; export default Input;