mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-10 06:10:17 -04:00
9 lines
345 B
TypeScript
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;
|
|
}; |