ReadonlyprefixOptional SVG icon content to display before the input.
Should be a Lucide SVG inner-content string
(e.g. UIIcons.Lucide.Text.AtSign).
Transform the raw text into the adapted value.
Called on every input event. The result is stored in the value model
and written back to the native input element, so the user sees the
adapted text. The original keystrokes are preserved in the text model.
Raw text from the input element.
Adapted value string (displayed in the field and emitted via value).
Validate the raw text and return a result indicating whether the current input is valid.
When present, UIInput exposes a valid signal and applies the
invalid host class when validation fails.
Raw text from the input element.
Validation result with valid flag and error messages.
Adapter for URL slugs.
Trims whitespace, lowercases, replaces whitespace and underscores with hyphens, strips non-alphanumeric characters (except hyphens), and collapses consecutive hyphens.
Validates that the result matches the slug pattern (lowercase alphanumeric segments joined by single hyphens).
Shows a link prefix icon.
Example