input-file

PreviousNext
Docs
kanpekiexample

Preview

Loading preview…
registry/examples/input/input-file.tsx
import { Input } from "~/registry/ui/input";
import { Label } from "~/registry/ui/label";

export function InputFile() {
  return (
    <div className="grid w-full max-w-sm items-center gap-3">
      <Label htmlFor="picture">Picture</Label>
      <Input id="picture" type="file" />
    </div>
  );
}

Installation

npx shadcn@latest add @kanpeki/input-file

Usage

import { InputFile } from "@/components/input-file"
<InputFile />