The Input component is a styled text input field that supports various sizes and visual variants.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yogendrarana/craftdotui/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Usage
Props
Visual variant of the input.Options:
default, ghostSize of the input field.Options:
xs, sm, md, lg, xlHTML input type (text, email, password, search, file, etc.)
Placeholder text.
Disables the input.
Variants
- default: Standard input with border and focus ring
- ghost: Borderless input with transparent background
Sizes
xs: h-7, text-xssm: h-8, text-xsmd: h-8.5, text-sm (default)lg: h-9, text-smxl: h-9.5, text-base
Examples
Sizes
Variants
Input Types
Accessibility
- Built on @base-ui/react Input primitive
- Proper focus management with visible focus rings
- Disabled state prevents interaction
- Search input removes webkit decorations
- File input includes proper styling for file button