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>
23 lines (22 loc) • 667 B
TypeScript
import React, { ComponentPropsWithoutRef, ComponentPropsWithRef } from "react";
import { Color } from "../../types";
type ColorType = {
color?: Color;
};
type ChildrenType = {
children: React.ReactNode;
};
type FormSelectType = ChildrenType & ColorType & {
value: string | number;
onChange: (value: string) => void;
helperText?: string;
error?: boolean;
fullWidth?: boolean;
};
export type SelectStyledProps = ColorType & {
fullWidth: boolean;
readOnly?: boolean;
};
export type SelectProps = ComponentPropsWithRef<"select"> & FormSelectType;
export type OptionProps = ComponentPropsWithoutRef<"option"> & ChildrenType;
export {};