skyroc-ui
Version:
A modern React UI component library built on Radix UI and Tailwind CSS
25 lines (24 loc) • 1.19 kB
TypeScript
import { BaseComponentProps, BaseNodeProps, ClassValue, ThemeColor } from "../../types/other.js";
import { RadioSlots } from "./radio-variants.js";
import { ReactNode } from "react";
import { RadioGroupIndicatorProps, RadioGroupItemProps, RadioGroupProps } from "@radix-ui/react-radio-group";
//#region src/components/radio/types.d.ts
type RadioClassNames = Partial<Record<RadioSlots, ClassValue>>;
interface RadioProps extends RadioGroupItemProps$1 {
classNames?: Pick<RadioClassNames, 'control' | 'indicator' | 'label' | 'root'>;
label?: ReactNode;
}
interface RadioGroupProps$1 extends BaseNodeProps<RadioGroupProps> {
classNames?: RadioClassNames;
color?: ThemeColor;
items: Omit<RadioProps, 'classNames' | 'color' | 'size'>[];
}
interface RadioGroupItemProps$1 extends BaseNodeProps<RadioGroupItemProps> {
color?: ThemeColor;
}
interface RadioIndicatorProps extends BaseNodeProps<RadioGroupIndicatorProps> {
color?: ThemeColor;
}
interface RadioRootProps extends BaseComponentProps<'div'> {}
//#endregion
export { RadioClassNames, RadioGroupItemProps$1 as RadioGroupItemProps, RadioGroupProps$1 as RadioGroupProps, RadioIndicatorProps, RadioProps, RadioRootProps };