Skip to content
Inputs

Input

A text input field that integrates with Signal Forms. Supports all standard HTML input types, validation states, and error display.

LlmInput
WCAG AA0 deps

Demo

Live PreviewReact
jsx
<LlmInput type="email" placeholder="you@example.com" />
<LlmInput type="password" placeholder="Password" />
<LlmInput invalid={true} placeholder="Invalid state" />
<LlmInput disabled={true} placeholder="Disabled" />

API (Angular)

PropTypeDefaultDescription
[(value)]string''Controlled value
(valueChange)(value: string) => voidCalled when the input value changes
type'text' | 'email' | 'password' | 'number' | 'tel' | 'url''text'Input type
placeholderstring''Placeholder text
disabledbooleanfalseDisables the input
readonlybooleanfalseMakes the input read-only
invalidbooleanfalseApplies invalid/error styling
requiredbooleanfalseMarks field as required
namestring''HTML name attribute for form submission

Import

ts
import { LlmInput } from '@atelier-ui/angular';

Prototyping with AI

Best practices

  • Explicitly state the "type" property to ensure correct mobile keyboards.
  • Always provide a meaningful "placeholder" to improve form scannability.
  • Use the "invalid" prop combined with LlmAlert for accessible error feedback.

Common hallucinations

  • AI often uses "onChange" (standard React/DOM) instead of "onValueChange".
  • AI may forget that "LlmInput" is a controlled component and needs state management.

Example prompt

Create a required LlmInput for email with a placeholder "name@company.com".