feat: add design system
Some checks failed
Deploy to VPS (dist) / deploy (push) Failing after 46s

This commit is contained in:
Hewston Fox
2026-03-12 00:42:41 +02:00
parent fcb8dab8a0
commit 55bf63e215
93 changed files with 1647 additions and 86 deletions

View File

@@ -0,0 +1,19 @@
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)}
/>
);
}