Loading...
Installation
Props
Prop | Type | Default | Description |
---|---|---|---|
label | string | "Smart Assist Input" | The label for the input field |
placeholder | string | "Type something..." | Placeholder text |
type | "text" | "email" | "password" | "search" | "text" | Input type |
rememberHistory | boolean | true | Enable input history tracking |
validate | (value: string) => string | null | undefined | Custom validation function |
Features
- Input History: Automatically saves and suggests previously entered values
- Real-time Validation: Custom validation with error messages
- Quick Actions: Copy and clear buttons for enhanced UX
- Local Storage: Persists history across browser sessions
- Dropdown History: Shows recent inputs in a dropdown when focused
- Smart Suggestions: Displays up to 5 most recent unique entries