krypton-ui
Version:
<h1 align="center"> <p align="center"><a href="https://krypton-ui.com"><img src="https://user-images.githubusercontent.com/7073241/224507377-395bffc0-9ff7-4d74-865b-f734394a7e7e.png" alt="Krypton" width="200"></a></p> </h1>
17 lines (16 loc) • 444 B
TypeScript
import { ComponentPropsWithRef } from "react";
import { Color } from "../../types";
type CheckedType = {
checked: boolean;
};
type RadioType = CheckedType & {
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
label?: string;
color?: Color;
};
export type RadioStyledProps = CheckedType & {
color: Color;
disabled: boolean;
};
export type RadioProps = ComponentPropsWithRef<"input"> & RadioType;
export {};