Input/input-standard-

PreviousNext

A input/input-standard- example

Docs
shadcnblocksblock

Preview

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

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

export const title = "Inline Label";

const Example = () => (
  <div className="flex w-full max-w-sm items-center gap-4">
    <Label className="w-24 text-right" htmlFor="age">
      Age
    </Label>
    <Input
      className="flex-1 bg-background"
      id="age"
      placeholder="25"
      type="number"
    />
  </div>
);

export default Example;

Installation

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

Usage

import { InputInputStandard7 } from "@/components/input-input-standard-7"
<InputInputStandard7 />