Kinetic UI
Back to Introduction
Forms

Input

Displays a form input field or a component that looks like an input field.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add input

The Input component allows users to enter text data. It supports standard HTML input attributes, custom labels, helper text, and integrated error states with smooth animations.

Live Preview

Input

Installation

npx kinetic-ui-cli@latest add input

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { Input } from "@/components/ui/input";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { Input } from "@/components/ui/input";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <Input
        error="example"
        label="example"
        helperText="example"
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.