Use RefCallback type

This commit is contained in:
R Midhun Suresh 2024-11-13 18:23:37 +05:30
parent 5c3a518576
commit 27b62d022e
No known key found for this signature in database
4 changed files with 8 additions and 7 deletions

View file

@ -6,11 +6,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
Please see LICENSE files in the repository root for full details.
*/
import React from "react";
import React, { RefCallback } from "react";
import classnames from "classnames";
interface IProps extends React.InputHTMLAttributes<HTMLInputElement> {
inputRef?: (node: HTMLInputElement | null) => void;
inputRef?: RefCallback<HTMLInputElement>;
outlined?: boolean;
// If true (default), the children will be contained within a <label> element
// If false, they'll be in a div. Putting interactive components that have labels