generated from warmachine028/github-super-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7b47f7
commit 0eb3963
Showing
5 changed files
with
134 additions
and
57 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Search as SearchIcon } from 'lucide-react' | ||
import { cn } from '@/lib/utils' | ||
import { Input, type InputProps } from './input' | ||
|
||
const Search = ({ className, iconClassName, ...props }: { iconClassName?: string } & InputProps) => { | ||
return ( | ||
<div className="relative w-full"> | ||
<div className="absolute left-2 top-1/2 -translate-y-1/2 transform"> | ||
<SearchIcon size={18} className={cn('text-muted-foreground', iconClassName)} /> | ||
</div> | ||
<Input | ||
className={cn( | ||
'border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-4 py-2 pl-8 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50', | ||
className | ||
)} | ||
{...props} | ||
/> | ||
</div> | ||
) | ||
} | ||
|
||
export { Search } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters