mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-29 00:59:40 +07:00
26 lines
579 B
TypeScript
26 lines
579 B
TypeScript
import React from "react";
|
|
import { GetProps, Input, View, ViewStyle } from "tamagui";
|
|
import Icons from "./icons";
|
|
|
|
type SearchInputProps = GetProps<typeof Input> & {
|
|
_container?: ViewStyle;
|
|
};
|
|
|
|
const SearchInput = ({ _container, ...props }: SearchInputProps) => {
|
|
return (
|
|
<View position="relative" {..._container}>
|
|
<Icons
|
|
name="magnify"
|
|
size={20}
|
|
position="absolute"
|
|
top={11}
|
|
left="$3"
|
|
zIndex={1}
|
|
/>
|
|
<Input pl="$7" placeholder="Search..." {...props} />
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export default SearchInput;
|