// Copyright (c) Tailscale Inc & AUTHORS // SPDX-License-Identifier: BSD-3-Clause import cx from "classnames" import React, { InputHTMLAttributes } from "react" type Props = { className?: string inputClassName?: string error?: boolean suffix?: JSX.Element } & InputHTMLAttributes // Input is styled in a way that only works for text inputs. const Input = React.forwardRef((props, ref) => { const { className, inputClassName, error, prefix, suffix, disabled, ...rest } = props return (
{suffix ? (
{suffix}
) : null}
) }) export default Input