AsterUIDocsv1.0.2

Docs / Component reference

Input & Textarea

Put a field's label, hint and error beside the editable value. The module includes both single-line and multiline inputs.

Input example

Install

sh
npx @fierst/ui@1.0.2 add input

Registry dependencies: theme.

Exports from ./ui/input: Input, Textarea.

Download the registry source for input 1.0.2.

API contracts

ts
export function Input({
  id,
  label,
  hint,
  error,
  leading,
  trailing,
  class: extraClass,
  ...rest
}: {
  id?: string;
  label?: string;
  hint?: string;
  error?: string | null;
  leading?: View;
  trailing?: View;
  class?: string;
  [key: string]: any;
})

export function Textarea({
  id,
  label,
  hint,
  error,
  class: extraClass,
  ...rest
}: {
  id?: string;
  label?: string;
  hint?: string;
  error?: string | null;
  class?: string;
  [key: string]: any;
})