Form

Input

Text input with label, error state, and helper text.

Available inreactangular

Preview

Live previewreal component

Install

TerminalBash
npx @mcp-elements/cli add input

Usage

input-example.tsxTSX
import { Input } from '@mcp-elements/react'

export function Example() {
  return (
    <Input
      label="Email address"
      placeholder="you@example.com"
      helperText="We'll never share your email."
    />
  )
}

Props

PropTypeDefaultDescription
labelstringLabel text above the input
placeholderstringPlaceholder text
errorstringError message shown below the input
helperTextstringHelper text shown below the input
disabledbooleanfalseWhether the input is disabled