feat: finalize kinerja divisi feature implementation
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
23
src/components/ui/input.tsx
Normal file
23
src/components/ui/input.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { TextInput, type TextInputProps } from "@mantine/core";
|
||||
import React from "react";
|
||||
import { cn } from "./utils"; // Assuming cn is still useful for merging classNames
|
||||
|
||||
interface InputProps extends TextInputProps {
|
||||
// Add any specific props you had in your custom Input component
|
||||
}
|
||||
|
||||
const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
||||
({ className, type, ...props }, ref) => {
|
||||
return (
|
||||
<TextInput
|
||||
ref={ref}
|
||||
type={type}
|
||||
className={cn(className)} // Apply custom classNames if any
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
},
|
||||
);
|
||||
Input.displayName = "Input";
|
||||
|
||||
export { Input };
|
||||
Reference in New Issue
Block a user