'use client';
import { forwardRef } from 'react';
import { useComponentConfig } from '../config-provider/context';
import InputUI from './InputUI';
import type { InputProps } from './types';
const Input = forwardRef<HTMLInputElement, InputProps>((props, ref) => {
const config = useComponentConfig('input');
const mergedProps = {
...config,
...props
};
return (
<InputUI
{...mergedProps}
ref={ref}
/>
);
});
Input.displayName = 'Input';
export default Input;
npx shadcn@latest add @skyr/inputimport { Input } from "@/components/input"<Input />