NB
NEO

Neo Input

A high-contrast input field that demands attention. Turns electric yellow when focused and screams when there's an error.

01 Installation

Copy the source code below into your project.

Source Code
New Component

src/components/neo/

NeoInput.tsx

Or switch to the "Code" tab to view manually

02 Basic Usage

Simple Input

03 Labels & Icons

Pass a `label` prop for a built-in header, or an `icon` to add visual flair inside the input.

Icons Example

04 Validation States

Pass an `error` string to trigger the error state. The border turns red and the background highlights in pink on focus.

Error Handling

Password is too weak, try 'password123'

05 Real World Examples

Login Form
Secure
SYSTEM_LOGIN_V2

Props API

PropTypeDefaultDescription
labelstringundefinedLabel text displayed above the input.
errorstringundefinedError message. Triggers error styling state.
iconElementTypeundefinedReact icon component to display on the right side.
...propsInputHTMLAttributes-All standard input props (placeholder, type, onChange, etc).