/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import * as React from "react"; // helpers import { cn } from "../utils"; export interface InputProps extends React.InputHTMLAttributes { mode?: "primary" | "transparent" | "true-transparent"; inputSize?: "xs" | "sm" | "md"; hasError?: boolean; className?: string; } const Input = React.forwardRef(function Input(props: InputProps, ref: React.ForwardedRef) { const { id, type, name, mode = "primary", inputSize = "sm", hasError = false, className = "", autoComplete = "off", ...rest } = props; return ( ); }); Input.displayName = "form-input-field"; export { Input };