larva modules: search-form
Available Variants
prototypesearch-form
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
search-form
Twig The markup file.
{% if search_form_is_swiftype %}
<div data-st-search-form="small_search_form"></div>
{% else %}
<form class="search-form {{ search_form_classes }}" action="{{ search_form_action_url }}" role="search" method="get">
<label>
<span class="lrv-a-screen-reader-only">Search for:</span>
<input class="{{ search_form_input_classes }}" type="search" placeholder="{{ search_form_input_placeholder_attr }}" value="" name="s">
</label>
<input class="{{ search_form_submit_classes }}" type="submit" value="Search">
</form>
{% endif %}
search-form
JSON The data object for this pattern.
{
"search_form_classes": "",
"search_form_action_url": "#",
"search_form_is_swiftype": false,
"search_form_input_classes": "",
"search_form_input_placeholder_attr": "Search",
"search_form_submit_classes": ""
}