Input/input-standard-

PreviousNext

A input/input-standard- example

Docs
shadcnblocksblock

Preview

Loading preview…
code/example/input/input-standard-2.tsx
"use client";

import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";

export const title = "Input with Description";

const Example = () => (
  <div className="w-full max-w-sm space-y-2">
    <Label htmlFor="username">Username</Label>
    <p className="text-sm text-muted-foreground">
      This will be your unique identifier on the platform.
    </p>
    <Input className="bg-background" id="username" placeholder="johndoe" />
  </div>
);

export default Example;

Installation

npx shadcn@latest add @shadcnblocks/input-input-standard-2

Usage

import { InputInputStandard2 } from "@/components/input-input-standard-2"
<InputInputStandard2 />