You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
890 B
React

import React from "react";
import { HiSearch } from "react-icons/hi";
export default function SearchInput({ onChange, value }) {
return (
<div className="relative w-full">
<div className="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
<HiSearch className='text-base dark:text-white'/>
</div>
<input
type="text"
className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
placeholder="Search"
onChange={onChange}
value={value}
autoComplete="off"
/>
</div>
)
}