import type { ReactElement, HTMLAttributes, Ref } from "react";
import type SlRadioElement from "@shoelace-style/shoelace/dist/components/radio/radio.js";
import { SlBlurEvent, SlFocusEvent } from "../events";
export type { SlRadioElement };
export type SlRadioBlurEvent = SlBlurEvent;
export type SlRadioFocusEvent = SlFocusEvent;
export interface SlRadioProps extends HTMLAttributes {
ref?: Ref;
/**
* The radio's value. When selected, the radio group will receive this value.
*/
value?: string;
/**
* The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
* attribute can typically be omitted.
*/
size?: "small" | "medium" | "large";
/**
* Disables the radio.
*/
disabled?: boolean;
/**
* Emitted when the control loses focus.
*/
onSlBlur?: (event: SlRadioBlurEvent) => void;
/**
* Emitted when the control loses focus.
*/
onSlBlurCapture?: (event: SlRadioBlurEvent) => void;
/**
* Emitted when the control gains focus.
*/
onSlFocus?: (event: SlRadioFocusEvent) => void;
/**
* Emitted when the control gains focus.
*/
onSlFocusCapture?: (event: SlRadioFocusEvent) => void;
}
/**
* Radios allow the user to select a single option from a group.
*/
export default function SlRadio(
props: SlRadioProps,
): ReactElement;