BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/einui/weather-widget

Weather Widgets

einui/weather-widget
FreeComponent

Weather widgets for displaying temperature, conditions, forecasts, and hourly data with liquid glass styling.

Live preview

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

Install it

npx shadcn@latest add https://ui.eindev.ir/r/weather-widget.json

Source

registry/widgets/weather-widget.tsxui.eindev.ir/r/weather-widget.json · first 6 KB
1"use client";
2
3import { cn } from "@/lib/utils";
4import { Cloud, CloudRain, Sun, CloudSnow, Wind, Droplets, Thermometer, Moon } from "lucide-react";
5import { GlassWidgetBase } from "./base-widget";
6
7type WeatherCondition = "sunny" | "cloudy" | "rainy" | "snowy" | "night" | "night-cloudy";
8
9const WeatherIcon = ({
10 condition,
11 className,
12}: {
13 condition: WeatherCondition;
14 className?: string;
15}) => {
16 switch (condition) {
17 case "sunny":
18 return <Sun className={cn("text-amber-400", className)} />;
19 case "cloudy":
20 return <Cloud className={cn("text-gray-400", className)} />;
21 case "rainy":
22 return <CloudRain className={cn("text-blue-400", className)} />;
23 case "snowy":
24 return <CloudSnow className={cn("text-blue-200", className)} />;
25 case "night":
26 return <Moon className={cn("text-blue-300", className)} />;
27 case "night-cloudy":
28 return <Cloud className={cn("text-gray-500", className)} />;
29 default:
30 return <Sun className={cn("text-amber-400", className)} />;
31 }
32};
33
34interface WeatherWidgetProps {
35 temperature: number;
36 condition: string;
37 icon?: "sun" | "cloud" | "rain" | "snow" | "wind";
38 location?: string;
39 className?: string;
40}
41
42function WeatherWidget({
43 temperature,
44 condition,
45 icon = "sun",
46 location,
47 className,
48}: WeatherWidgetProps) {
49 const iconMap = {
50 sun: Sun,
51 cloud: Cloud,
52 rain: CloudRain,
53 snow: CloudSnow,
54 wind: Wind,
55 };
56
57 const Icon = iconMap[icon];
58 const glowColors = {
59 sun: "amber",
60 cloud: "blue",
61 rain: "cyan",
62 snow: "purple",
63 wind: "blue",
64 } as const;
65
66 return (
67 <GlassWidgetBase className={cn("min-w-48", className)} size="md" glowColor={glowColors[icon]}>
68 {location && <div className="text-white/60 text-sm mb-2">{location}</div>}
69 <div className="flex items-center justify-between">
70 <div className="flex items-center gap-3">
71 <div className="p-2 rounded-xl bg-white/10">
72 <Icon className="w-8 h-8 text-white" />
73 </div>
74 <div>
75 <div className="text-4xl font-light text-white">{temperature}°</div>
76 <div className="text-white/70 text-sm">{condition}</div>
77 </div>
78 </div>
79 </div>
80 </GlassWidgetBase>
81 );
82}
83
84interface CurrentWeatherWidgetProps {
85 location: string;
86 temperature: number;
87 feelsLike?: number;
88 high?: number;
89 low?: number;
90 condition?: WeatherCondition;
91 humidity?: number;
92 windSpeed?: number;
93// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • https://ui.eindev.ir/r/base-widget.json

Files it writes

  • registry/widgets/weather-widget.tsx

Facts

Registry
einui
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
yesterday

Go to the source

Docs on einui ui.eindev.ir einui/einui on GitHub Raw registry item This item as JSON

More from einui

All 44 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Base Widgetbase-widgeteinuiComponentsFree1 dep
Calendar Widgetscalendar-widgeteinuiComponentsFree1 dep
Clock Widgetsclock-widgeteinuiComponentsFree1 dep
Glass Alert Dialogglass-alert-dialogeinuiComponentsFree1 dep
Glass Avatarglass-avatareinuiComponentsFree1 dep
Glass Badgeglass-badgeeinuiComponentsFree1 dep
Glass Breadcrumbglass-breadcrumbeinuiComponentsFree1 dep
Glass Buttonglass-buttoneinuiComponentsFree2 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

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.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 KitGrade

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 KitGrade

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 KitGrade

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