VoileWeb.Components.SearchBar (Voile v0.1.26)

Copy Markdown View Source

A simple search bar component that matches the Voile dashboard styling

Summary

Functions

Renders a search bar that can be embedded in the navigation or dashboard

Functions

search_bar(assigns)

Renders a search bar that can be embedded in the navigation or dashboard

Examples

<.search_bar placeholder="Search library..." />
<.search_bar size="large" show_filters />

Attributes

  • placeholder (:string) - Defaults to "Search library catalog...".
  • size (:string) - Defaults to "default".
  • show_filters (:boolean) - Defaults to false.
  • value (:string) - Defaults to "".
  • class (:string) - Defaults to "".