UNPKG

@yandex/ui

Version:

Yandex UI components

35 lines (34 loc) 1.22 kB
import { ReactNode, RefObject, CSSProperties, FC } from 'react'; import { Omit } from '../typings/utility-types'; import { IRadioButtonControlProps } from './Control/RadioButton-Control'; import './RadioButton.css'; export declare const cnRadioButton: import("@bem-react/classname").ClassNameFormatter; export interface IRadioButtonOption extends Omit<IRadioButtonControlProps, 'name' | 'checked'> { /** * Содержимое кнопки. */ children: ReactNode; } export interface IRadioButtonProps extends Omit<IRadioButtonControlProps, 'id' | 'checked' | 'controlRef'> { /** * Набор опций. */ options: IRadioButtonOption[]; /** * Ссылка на корневой DOM-элемент компонента. */ innerRef?: RefObject<HTMLSpanElement>; /** * Пользовательские стили на корневом DOM-элементе. */ style?: CSSProperties; /** * Метка для радиогруппы. */ 'aria-label'?: string; } /** * Компонент для создания радиогруппы. * @param {IRadioButtonProps} props */ export declare const RadioButton: FC<IRadioButtonProps>;