Skip to content

Input

PeacockInput provides a focus-reactive interface with dynamic glow borders.

Usage

tsx
import { PeacockInput } from '@peacock-ui/core'
import { Mail } from 'lucide-react'

function Example() {
  return (
    <PeacockInput 
      label="Email Address"
      placeholder="you@example.com"
      icon={<Mail size={16} />}
    />
  )
}

Props

PropTypeDefaultDescription
labelstring-Optional floating-style label.
errorstring-Error message to display below the input.
iconReactNode-Icon to display on the left side.
...propsInputAttributes-Standard HTML input attributes.

Released under the MIT License.