GitHub

Input

Text input field

Basic Usage

Loading...

Installation

pnpm add @corew500/ui

Usage

import { Input } from "@corew500/ui/input"

<Input>Content</Input>

Variants

inputVariants

AxisValuesDefault
size
defaultsmlg
default

Variants

CMS Integration

CMSPayload CMS Integration
This component supports CMS-driven content via @corew500/cms-payload.
Loading...

API Reference

Props

PropTypeDefaultDescription
typeenumtextInput type - affects validation and mobile keyboard
inputModeenumControls which keyboard to show on mobile devices Use this when you want a specific keyboard but different validation than the type provides Example: type="text" with inputMode="numeric" for credit card numbers
enterKeyHintenumControls the label shown on the mobile Enter/Return key Example: "search" shows "Search", "send" shows "Send"
autoCapitalizeenumControls automatic text capitalization on mobile Example: "words" for names, "none" for emails
glowenumfalseEnable mouse-tracking glow effect on hover
sizeenumdefault

Accessibility

Keyboard Navigation

  • Focus ring visible for keyboard navigation

Screen Readers

  • Supports all standard input attributes (aria-label, aria-describedby, etc.)
  • Invalid state indicated via `aria-invalid` with visual ring

Additional

  • - Uses native input semantics via Base UI primitive
  • Disabled state prevents interaction and reduces opacity

Localization

Translatable Content

  • - Pass translated strings to `placeholder` prop
  • Use `aria-label` for screen reader text when no visible label