hextastudio/ui needs your support to stay running 🫶 Help us
Searchbar
A modern searchbar component.
Modern Searchbar
Installation
tsx
import { Button } from "@/components/hexta-ui/Button";
import { Input } from "@/components/hexta-ui/Input";
import { useState, useEffect, useRef } from "react";
import { FaSearch } from "react-icons/fa";
const ModernSearchBar = () => {
const [inputValue, setInputValue] = useState("");
return (
<>
Searchbar with items
- Next.js
- React
- Vue
- Angular
- Svelte
- TailwindCSS
- hextastudio/ui
- JavaScript
- TypeScript
- HTML
- CSS
- SCSS
tsx
import { Button } from "@/components/hexta-ui/Button";
import { Input } from "@/components/hexta-ui/Input";
import { useState, useEffect, useRef } from "react";
import { FaSearch } from "react-icons/fa";
interface ListSearchbarProps {
items: string[];
}
const ListSearchbar = ({ items }: ListSearchbarProps) => {
Usage
tsx
<ListSearchbar
items={[
"Next.js",
"React",
"Vue",
"Angular",
"Svelte",
"TailwindCSS",
"hextastudio/ui",
"JavaScript",