chore: label 컴포넌트 적용

This commit is contained in:
2025-04-02 10:58:02 +09:00
parent 60464b92b0
commit 3832adf3b0
5 changed files with 17 additions and 14 deletions
@@ -2,6 +2,7 @@ import "./file-uploader.css";
import { cn } from "../../lib/utils";
import { Input } from "../input";
import { Label } from "../label";
import { combineFileName, validFileType } from "./utils";
type FileUploaderProps = React.InputHTMLAttributes<HTMLInputElement> & {
@@ -29,9 +30,9 @@ export function FileUploader({
<div className="file-uploader-preview">
{files?.filter(validFileType).map(combineFileName).join(", ")}
</div>
<label htmlFor={id} className="file-uploader-label">
<Label htmlFor={id} className="file-uploader-label">
파일 선택
</label>
</Label>
</div>
);
}