{%- extends "theming/base_component.html" -%} {%- block overview -%}
The search_form component creates complete search forms that
organize all search-related elements into a cohesive unit. This component
provides the overall structure for search interfaces and handles form
submission and validation for search operations.
When search_form requires customization that goes beyond
the the capabilities of the base component, the search_form_box can
be used with other form parts to build the custom interface.
The search_form_box component creates the container for
search forms, providing the form element structure and HTMX integration for
enhanced search functionality. This component serves as the foundational
wrapper for search forms, handling form submission and accessibility
requirements.
The search_input component creates search input fields where
users enter their search queries. This component handles the primary text input
for search operations and often includes features like search suggestions,
history, or instant search capabilities.
The search_results_text component creates headers
for search results displays, providing context and organization for the search
results. This component typically includes information about the search query,
result counts, and search errors if there are any.
The search_active_filters component displays the
currently active filters in search interfaces, showing users which filters are
currently applied to their search results. This component is crucial for search
usability, allowing users to understand what filters are affecting their
results and providing easy ways to remove or modify active filters.
Active filters are typically displayed as removable tags or badges that show the filter type and value. Users can click these elements to remove specific filters, providing immediate feedback and control over their search criteria. The component ensures that users always know which filters are active and can easily modify their search parameters.
The search_sort_control component provides controls
for sorting search results in different ways, allowing users to organize their
results by relevance, date, name, or other criteria.
The search_submit_button component creates search
submission buttons that trigger search operations when clicked. This component
provides the primary action for initiating searches and must be clearly
identifiable and appropriately styled to encourage user action.