Input 22

PreviousNext

An email input field with a filled muted background style and no border

Docs
shadcn-studiocomponent

Preview

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

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

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

  return (
    <div className='w-full max-w-xs space-y-2'>
      <Label htmlFor={id}>Filled input</Label>
      <Input id={id} type='email' placeholder='Email address' className='bg-muted border-transparent shadow-none' />
    </div>
  )
}

export default InputFilledDemo

Installation

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

Usage

import { Input22 } from "@/components/input-22"
<Input22 />