Skip to main content

Installation

No external dependencies required. Or use the CLI:

Usage

Component API

Input

A styled input component built on the native HTML <input> element. Props:
  • All standard HTML input attributes
  • type - Input type (default: "text")
  • disabled - Disable the input
  • placeholder - Placeholder text
  • className - Additional CSS classes
  • aria-invalid - Mark as invalid for error states

Examples

Basic

A simple input field:

With Label

Combine with a label:

With Description

Add a description below the input:

Disabled

Disable the input:

Invalid State

Show an error state:

File Input

Create a file input:

With Button

Combine input with a button:

Form

Use in a form with React Hook Form:

Different Types

    With Icon

    Add an icon to the input using Input Group:

    Required

    Mark input as required:

    Accessibility

    • Built on native HTML input element
    • Supports all standard input attributes
    • Proper focus styles
    • Error states with aria-invalid
    • Works with label associations
    • Keyboard accessible