jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
50 lines (49 loc) • 1.04 kB
TypeScript
/**
* @file index.tsx
*
* @fileoverview Renders a list of radio buttons.
*/
import React from 'react';
export interface RadioValue {
value: string;
title: string;
}
export interface RadiosProps extends React.InputHTMLAttributes<HTMLInputElement> {
/**
* The list of possible values.
*/
values: RadioValue[];
/**
* The currently selected value.
*/
selectedValue?: string;
/**
* The name to group all radios together.
*/
name: string;
/**
* The label to be shown next to the input.
*/
label?: string;
/**
* The id for the field.
*/
id: string;
/**
* Marks if a field is in an error state.
*
* @default false
*/
error?: boolean;
}
export declare const Radios: ({ label, id, name, values, error, required, selectedValue, ...props }: {
[x: string]: any;
label: any;
id: any;
name: any;
values: any;
error: any;
required: any;
selectedValue?: any;
}) => any;
export default Radios;