UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

42 lines (41 loc) 874 B
/** * @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; } export declare const Radios: ({ label, id, name, values, selectedValue, ...props }: { [x: string]: any; label: any; id: any; name: any; values: any; selectedValue?: any; }) => any; export default Radios;