Initial commit

This commit is contained in:
2025-10-11 11:55:25 +08:00
parent 467dad8449
commit 8107dee8d3
2879 changed files with 610575 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
import React from "react";
import {
IconButton,
Input,
InputGroup,
InputLeftElement,
useColorModeValue,
} from "@chakra-ui/react";
import { SearchIcon } from "@chakra-ui/icons";
export function SearchBar(props) {
// Pass the computed styles into the `__css` prop
const { variant, children, ...rest } = props;
// Chakra Color Mode
const searchIconColor = useColorModeValue("gray.700", "gray.200");
const inputBg = useColorModeValue("white", "navy.800");
return (
<InputGroup borderRadius='8px' w='200px' {...rest}>
<InputLeftElement
children={
<IconButton
bg='inherit'
borderRadius='inherit'
_hover={{}}
_active={{
bg: "inherit",
transform: "none",
borderColor: "transparent",
}}
_focus={{
boxShadow: "none",
}}
icon={
<SearchIcon color={searchIconColor} w='15px' h='15px' />
}></IconButton>
}
/>
<Input
variant='search'
fontSize='xs'
bg={inputBg}
placeholder='Type here...'
/>
</InputGroup>
);
}