Traken UI

Input

A flexible and fully customizable `Input` component for forms and UI fields. Supports different visual **variants**, **colors**, **sizes**, **rounded corners**, labels, and layout customizations.

Features

  • 4 visual input variants
  • 6 color options
  • 5 sizes
  • Adjustable corner radius
  • Support for labels and label placements
  • Full width layout option
  • Disabled state support

Variants


Color Options

Customize your input field to match your UI theme.


Rounded Corners

Choose border-radius from small, medium, or large to fit different layouts.


Labels & Label Placement


Controlled Example


Props

PropTypeDefaultDescription
variant"flat" | "faded" | "bordered" | "underlined""flat"Visual style of the input
color"default" | "primary" | "secondary" | "danger" | "success" | "warning""default"Input color
size"base" | "sm" | "md" | "lg" | "xl""base"Size of the input
rounded"sm" | "md" | "lg" | "xl" | "full""md"Border radius
placeholderstring""Placeholder text
disabledbooleanfalseDisables the input
fullWidthbooleanfalseMakes the input stretch to 100% width
labelstring""Label for the input field
labelPlacement"top" | "left""top"Position of the label relative to the input

On this page