UNPKG

@brizy/ui

Version:
19 lines (18 loc) 568 B
import { ReactElement, ReactNode } from "react"; import { Literal } from "../types"; interface RadioOptionType { label: ReactNode; value: Literal; disabled?: boolean; } export interface Props { value?: Literal; children?: ReactNode; type?: "default" | "outline" | "solid"; options?: Array<RadioOptionType | string>; disabled?: boolean; onChange?: (v: Literal) => void; className?: string; } export declare const RadioGroup: ({ value, children, type, options, disabled, onChange, className, }: Props) => ReactElement; export {};