import { cn } from '@cherrystudio/ui/utils' import { EyeIcon } from 'lucide-react' import React, { useMemo } from 'react' import { Button } from './button' export interface InputProps extends React.ComponentPropsWithRef<'input'> { startContent?: React.ReactNode endContent?: React.ReactNode label?: string caption?: string } export function Input({ startContent, endContent, className, type, required, label, caption, ...props }: InputProps) { const id = React.useId() const input = useMemo(() => { const input = ( ) return input }, [className, id, props, required, type]) if (label !== undefined) { return (
{startContent}
{input}
{endContent}
{caption &&
{caption}
}
) } return input } function InputPassword() {}