Input/input-standard-

PreviousNext

A input/input-standard- example

Docs
shadcnblocksblock

Preview

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

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

export const title = "Required Field";

const Example = () => (
  <div className="w-full max-w-sm space-y-2">
    <Label htmlFor="fullname">
      Full Name <span className="text-destructive">*</span>
    </Label>
    <Input
      className="bg-background"
      id="fullname"
      placeholder="Enter your full name"
      required
    />
    <p className="text-xs text-muted-foreground">* Required field</p>
  </div>
);

export default Example;

Installation

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

Usage

import { InputInputStandard4 } from "@/components/input-input-standard-4"
<InputInputStandard4 />