@brizy/ui
Version:
React elements in Brizy style
19 lines (18 loc) • 568 B
TypeScript
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 {};