| title | SearchBar Component | |||
|---|---|---|---|---|
| description | Documentation for the SearchBar component | |||
| detail_level | Component details | |||
| tags |
|
|||
| revised | false |
The SearchBar is the primary command input mechanism in meows.space. It serves as the main entry point for user interaction, allowing users to enter commands and parameters.
The SearchBar consists of three main sub-components:
- ProviderSelect - A dropdown for choosing search engines
- CommandInput - The main text field with parsing and suggestions
- ActionBar - Contains execute/clear/settings buttons
The CommandInput field accepts text input from the user and performs real-time parsing to identify:
- Command keywords
- Parameters
- Special operators
As users type, the component provides suggestions based on:
- Command history
- Available commands
- Parameter hints
The ProviderSelect dropdown allows users to:
- Choose default search engines
- Override the default search provider for the current command
- Access recently used providers
The ActionBar provides buttons for:
- Executing the current command
- Clearing the input field
- Accessing settings
- Viewing command history
The SearchBar implements several key features:
- Real-time command parsing
- Command validation
- Parameter extraction
- History tracking
- Focus management
The SearchBar appears on multiple pages:
- Main Search (/)
- Inventory (/personal)
- Global Catalog (/catalog)