Installation
npm install predictive-textarea
Usage
A rich textarea component with AI-powered content prediction. Press Tab to accept suggestions.
Default
Uses the default prediction styling (text-muted-foreground) with OpenAI integration
Variants
Disabled
Disabled textarea doesn't allow content input or show predictions
Disabled
Pre-filled
Textarea with initial value
Pre-filled
Custom Prediction Styling
Customize the appearance of prediction text with custom classes.
Indigo Style
Predictions with indigo color
Indigo Style
Subtle Style
Predictions with subtle gray styling
Subtle Style
Fancy Style
Predictions with gradient styling
Fancy Style