misc_pterodactyl-panel/resources/scripts/components/elements/inputs/InputField.tsx

12 lines
368 B
TypeScript
Raw Normal View History

2022-02-27 02:51:40 +00:00
import React, { forwardRef } from 'react';
import classNames from 'classnames';
import styles from './inputs.module.css';
export default forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(({ className, ...props }, ref) => (
<input
ref={ref}
className={classNames('form-input', styles.text_input, className)}
{...props}
/>
));