A Vue component that creates an animated search bar with customizable styles.
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | String | "Type to Search.." | Placeholder text for the search input. |
cancel_btn_color | String | "white" | Color of the cancel button. |
cancel_btn_hover_color | String | "#9E9E9E" | Hover color of the cancel button. |
search_btn_color | String | "white" | Color of the search button. |
background | String | "#191919" | Background color of the search bar. |
background_hover | String | "#212121" | Background color of the search bar on hover. |
text_color | String | "white" | Text color for the search input. |
| Event | Description |
|---|---|
handleInput | Emitted when the input value changes, passing the current input value. |
You can customize the appearance of the AnimatedSearchBar component:
<style> section to fine-tune sizes and animation properties.handleInput event.