BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Unlumen Ui/favicon-search

Favicon Search

unlumen-ui/favicon-search
FreeComponent

A search input that fetches and smoothly animates the site favicon into the search bar as you type a URL.

Live preview

live · rendered by the registry
Rendered by Unlumen Ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.unlumen.com/r/favicon-search.json

Source

registry/components/unlumen/favicon-search/index.tsxui.unlumen.com/r/favicon-search.json · first 6 KB
1"use client";
2
3import * as React from "react";
4import { motion, AnimatePresence } from "motion/react";
5import { Globe, Search, X } from "lucide-react";
6import { cn } from "@/lib/utils";
7
8function extractDomain(input: string): string | null {
9 if (!input.trim()) return null;
10 try {
11 const raw = input.includes("://") ? input : `https://${input}`;
12 const url = new URL(raw);
13 const host = url.hostname.replace(/^www\./, "");
14 if (host.includes(".") && host.split(".").every(Boolean)) return host;
15 return null;
16 } catch {
17 const cleaned = input.trim().replace(/^www\./, "");
18 if (cleaned.includes(".") && cleaned.split(".").every(Boolean))
19 return cleaned;
20 return null;
21 }
22}
23
24function getFaviconUrl(domain: string, size = 64): string {
25 return `https://www.google.com/s2/favicons?domain=${encodeURIComponent(domain)}&sz=${size}`;
26}
27
28export interface FaviconSearchProps {
29 /** Controlled value */
30 value?: string;
31 defaultValue?: string;
32 onChange?: (value: string) => void;
33 onSearch?: (value: string, domain: string | null) => void;
34 placeholder?: string;
35 clearable?: boolean;
36 /** @default 64 */
37 faviconSize?: 16 | 32 | 64 | 128;
38 /** @default 350 */
39 debounce?: number;
40 className?: string;
41 inputClassName?: string;
42}
43
44const FaviconSearch = React.forwardRef<HTMLInputElement, FaviconSearchProps>(
45 (
46 {
47 value: controlledValue,
48 defaultValue = "",
49 onChange,
50 onSearch,
51 placeholder = "Enter a website URL…",
52 clearable = true,
53 faviconSize = 64,
54 debounce = 350,
55 className,
56 inputClassName,
57 },
58 ref,
59 ) => {
60 const isControlled = controlledValue !== undefined;
61 const [internalValue, setInternalValue] = React.useState(defaultValue);
62 const value = isControlled ? controlledValue : internalValue;
63
64 const [domain, setDomain] = React.useState<string | null>(null);
65 const [faviconReady, setFaviconReady] = React.useState(false);
66 const [faviconError, setFaviconError] = React.useState(false);
67 const prevDomainRef = React.useRef<string | null>(null);
68
69 React.useEffect(() => {
70 const id = setTimeout(() => {
71 const d = extractDomain(value);
72 if (d !== prevDomainRef.current) {
73 prevDomainRef.current = d;
74 setFaviconReady(false);
75 setFaviconError(false);
76 setDomain(d);
77 }
78 }, debounce);
79 return () => clearTimeout(id);
80 }, [value, debounce]);
81
82// … truncated

What it pulls in

npm packages

  • motion
  • lucide-react

Files it writes

  • registry/components/unlumen/favicon-search/index.tsx

Facts

Registry
Unlumen Ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-05
Last confirmed
today

Go to the source

Docs on Unlumen Ui ui.unlumen.com leovvx/unlumen-ui-docs on GitHub Raw registry item This item as JSON

More from Unlumen Ui

All 233 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AI Chatai-chatUnlumen UiComponentsPaid2 deps
Vercel Animate Countanimate-countUnlumen UiComponentsFree1 dep
Animate Digitsanimate-digitsUnlumen UiComponentsFree1 dep
Animated Inputanimate-text-input-typingUnlumen UiComponentsPaid1 dep
Animated Listanimated-listUnlumen UiComponentsFree1 dep
Apple Switchapple-switchUnlumen UiComponentsFree1 dep
Aurora Barsaurora-barsUnlumen UiComponentsFree1 dep
Aurora Bluraurora-blurUnlumen UiComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex