Sourceful Energy

Input

Displays a form input field for user text entry.

Installation

import { Input } from "@sourceful-energy/ui"

Usage

Examples

With Label

Password

With Icon

Disabled

File Input

Props

PropTypeDefaultDescription
typestring"text"The type of input (text, email, password, etc.).
placeholderstring-Placeholder text displayed when empty.
disabledbooleanfalseWhether the input is disabled.
classNamestring-Additional CSS classes.

Accessibility

  • Uses native <input> element
  • Always pair with a Label component for accessibility
  • Supports all standard input attributes
  • Focus ring visible for keyboard users