• Logo

    Elementra UI

    v0.1.8 - Documentation
  1. Docs
  2. Components/input/

Input

A flexible, accessible form input component supporting icons, sizes, validation states, character counters, and password toggles.

1Installation

npm i elementra-ui

2Add Component CLI

npx elementra-ui add

3Component Preview

4API Reference

Input Props

PropTypeDefaultDescription
typestring"text"HTML input type (text, email, password, etc.)
size"sm" | "md" | "lg""md"Size variant of the input field
intent"default" | "success" | "error""default"Validation intent border styling
showPasswordTogglebooleantrueShows show/hide password toggle for type="password"