The <luna-input> component provides text inputs with multiple variants, decorators, and built-in validation support.
Paths
/lunadom/components/input/input.js Standard & Variants
Interactive Features
Decorators & Types
Customization
prefix - Content to display before the input text (e.g., an icon or prefix text)suffix - Content to display after the input text (and after action buttons)type - The type of input (text, password, email, etc.)placeholder - The placeholder textvalue - The current value of the inputsize - The size of the input (sm, md, lg)variant - The visual variant of the input (outline, filled)clearable - If present, shows a clear button when the input has a valuetoggle - If present and type is 'password', shows a button to toggle password visibilityreadonly - Whether the input is read-onlydisabled - Whether the input is disabledlabel - Label text to display above the inputhelp-text - Help text to display below the input--luna-input-bg - Background color of the input wrapper--luna-input-border - Border color of the input wrapper--luna-input-color - Text color of the input--luna-input-focus - Border color when focused--luna-input-focus-alpha - Shadow color when focused (alpha)--luna-input-radius - Border radius of the input wrapper--luna-input-padding - Internal padding of the input fieldinput - Emitted when the input value changesluna-clear - Emitted when the input is cleared via the clear buttonvalue - The current value of the input