Input 4

PreviousNext

A disabled email input field that prevents user interaction

Docs
shadcn-studiocomponent

Preview

Loading preview…
registry/new-york/components/input/input-04.tsx
import { useId } from 'react'

import { Input } from '@/registry/new-york/ui/input'
import { Label } from '@/registry/new-york/ui/label'

const InputDisabledDemo = () => {
  const id = useId()

  return (
    <div className='w-full max-w-xs space-y-2'>
      <Label htmlFor={id}>Disabled input</Label>
      <Input id={id} type='email' placeholder='Email address' disabled />
    </div>
  )
}

export default InputDisabledDemo

Installation

npx shadcn@latest add @shadcn-studio/input-04

Usage

import { Input04 } from "@/components/input-04"
<Input04 />