UNPKG

@postenbring/hedwig-react

Version:

React components for [Hedwig Design System](https://github.com/bring/hedwig-design-system).

17 lines 930 B
import { type InputHTMLAttributes, type ReactNode } from "react"; export interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue"> { children: ReactNode; variant?: "plain" | "bounding-box"; /** * Set to `true` to add error styling. The component will take care of aria to indicate invalid state. * * Normally you don't need this, as you should wrap your Radio buttons in the RadioGroup component. * When providing an errorMessage to RadioGroup, all contained Radio buttons will get correct hasError state. * * You can use this when your Radio button is part of a non-HDS fieldset which shows an error message. */ hasError?: boolean; title?: string; } export declare const RadioButton: import("react").ForwardRefExoticComponent<RadioButtonProps & import("react").RefAttributes<HTMLInputElement>>; //# sourceMappingURL=radio-button.d.ts.map