ComponentsNew

Glow Search

A dark search bar with light leaking from two corners and a soft halo that brightens on focus. A filter button sits on the right.

Customize

glowFrom
glowTo

Based on lazy-frog-59 by Cobp (MIT license) ยท Terms of use

More in Pro

View all

Props

9 properties
PropertyTypeDefaultDescription
placeholderstring"Search..."Hint in the empty field.
onSearch(query: string) => voidโ€”Called with the text when Enter is pressed.
onFilterClick() => voidโ€”Called when the filter button is pressed.
showFilterbooleantrueShow the filter button.
glowFromstring"#ffffff"Glow from the top-left corner.
glowTostring"#8a8a8a"Glow from the bottom-right corner.
widthnumber300Bar width in pixels.
labelstring"Search"Accessible name of the field.
classNamestringโ€”Classes for the wrapper.

Dependencies

2 required packages

npm install clsx tailwind-merge

Related components

View all