UNPKG

@marlon-chaviano/field-kit

Version:

A collection of reusable and accessible form components built with React, TailwindCSS, and fully integrated with React Hook Form...

7 lines (6 loc) 270 B
import { jsx as _jsx } from "react/jsx-runtime"; import { cn } from "../lib/utils"; const Error = ({ className, message, ...props }) => { return (_jsx("p", { ...props, className: cn("text-sm text-red-500", className), children: message })); }; export default Error;