18 lines
364 B
JavaScript
18 lines
364 B
JavaScript
import * as React from "react";
|
|
import { cn } from "../../utils/cn.js";
|
|
|
|
const Input = React.forwardRef(({ className, ...props }, ref) => {
|
|
return (
|
|
<input
|
|
ref={ref}
|
|
className={cn(
|
|
"border border-gray-300 rounded-md px-3 py-2 focus:ring focus:ring-blue-400",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
});
|
|
|
|
export { Input };
|