Files
honey-fe/src/components/form/TextInput/TextInput.tsx
Hewston Fox 55bf63e215
Some checks failed
Deploy to VPS (dist) / deploy (push) Failing after 46s
feat: add design system
2026-03-12 00:42:41 +02:00

20 lines
491 B
TypeScript

import { motion, type HTMLMotionProps } from "motion/react";
import clsx, { type ClassValue } from "clsx";
import classes from "./TextInput.module.css";
type Props = Omit<HTMLMotionProps<"input">, "className"> & {
className?: ClassValue;
error?: boolean;
};
export default function TextInput({ className, error, ...props }: Props) {
return (
<motion.input
{...props}
type="text"
className={clsx(classes.input, error && classes.error, className)}
/>
);
}