import type { ReactElement, HTMLAttributes, Ref } from "react"; import type SlRadioButtonElement from "@shoelace-style/shoelace/dist/components/radio-button/radio-button.js"; import { SlBlurEvent, SlFocusEvent } from "../events"; export type { SlRadioButtonElement }; export type SlRadioButtonBlurEvent = SlBlurEvent; export type SlRadioButtonFocusEvent = SlFocusEvent; export interface SlRadioButtonProps extends HTMLAttributes { ref?: Ref; /** * The radio's value. When selected, the radio group will receive this value. */ value?: string; /** * Disables the radio button. */ disabled?: boolean; /** * The radio button'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"; /** * Draws a pill-style radio button with rounded edges. */ pill?: boolean; /** * Emitted when the button loses focus. */ onSlBlur?: (event: SlRadioButtonBlurEvent) => void; /** * Emitted when the button loses focus. */ onSlBlurCapture?: (event: SlRadioButtonBlurEvent) => void; /** * Emitted when the button gains focus. */ onSlFocus?: (event: SlRadioButtonFocusEvent) => void; /** * Emitted when the button gains focus. */ onSlFocusCapture?: (event: SlRadioButtonFocusEvent) => void; } /** * Radios buttons allow the user to select a single option from a group using a button-like control. */ export default function SlRadioButton( props: SlRadioButtonProps, ): ReactElement;