UNPKG

@start-base/react-form-elements

Version:

Simplify form elements and form management. Selection of user friendly inputs and wide customization abilities to match your design and functionality.

29 lines (26 loc) 859 B
import React from 'react'; import { FieldError } from 'react-hook-form'; interface Option { value: string; label: string | React.ReactNode; } interface RadioCardsProps { name: string; onChange: (event: React.ChangeEvent<HTMLInputElement>) => void; value?: string | null; options: Option[]; label?: string | React.ReactNode; inputClassName?: string; cardClassName?: string; labelClassName?: string; optionLabelClassName?: string; direction?: 'row' | 'column'; errorClassName?: string; disabled?: boolean; hideInput?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } declare const RadioCards: React.ForwardRefExoticComponent<RadioCardsProps & React.RefAttributes<HTMLInputElement>>; export { type RadioCardsProps, RadioCards as default };