ksylvest/tights

View on GitHub
src/file_input.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { clsx } from "clsx";
import type { ComponentProps, FC } from "react";

export const FileInput: FC<ComponentProps<"input">> = ({
  className,
  ...props
}) => (
  <input {...props} type="file" className={clsx("file-input", className)} />
);