compass/compass/utils/classes/InputProps.ts
2024-03-02 15:26:33 -05:00

9 lines
345 B
TypeScript

import { InputHTMLAttributes } from "react";
import { Icons } from "../constants";
export type InputProps = InputHTMLAttributes<HTMLInputElement> & {
iconKey?: keyof typeof Icons; // Use keyof typeof to ensure the key exists in Icons
title?: string; // Assuming title is always a string
type?: string;
placeholder?: string;
};