SYS:ONLINE● ACTIVE
THEME
GITHUBv0.1.0

INPUT

Single-line text field with optional label, prefix symbol, and inline error message. Green caret, amber error states.

PREVIEW

>
Invalid authorization token.

INSTALLATION

BASH
npx shadcn@latest add @scificn/input

USAGE

TSX
import { Input } from '@/ui/input'

export function Example() {
  return (
    <Input
      label="TARGET DESIGNATION"
      placeholder="ENTER TARGET ID..."
      onChange={(e) => console.log(e.target.value)}
    />
  )
}

STATES

DEFAULT
$
PREFIX
Authorization failed.
ERROR
DISABLED

PROPS

PROPTYPEDEFAULTDESCRIPTION
labelstringLabel text displayed above the input. Auto-generates the id/htmlFor binding.
errorstringInline error message shown below. Turns border and label amber.
prefixstringSymbol rendered inside the left edge of the input.
disabledbooleanfalseDisables the field and reduces opacity.
placeholderstringPlaceholder text (inherits --text-muted color).
idstringOverride the auto-generated id.