Code And Chill

Glass Smart Home Dashboard

Dashboards

About

Glassmorphic smart-home dashboard: tinted glass over a cross-fading room photo, a draggable AC dial, device toggles, an energy chart and one-tap scenes, in light and dark. Full Hovira app: codeandchill.store/templates/hovira?utm_source=21st

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Glass Smart Home Dashboard to your project and fits it to your theme.

Code

How Glass Smart Home Dashboard is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { useEffect, useState } from "react";
import HoviraDashboard from "@/components/ui/glass-smart-home-dashboard";

const settings = {
  homeName: "Haddad Home",
  glassBlur: 24,
  glassTint: 18,
  accent: "#4f7cff",
};

function usePageDark() {
  const [dark, setDark] = useState(() => typeof document !== "undefined" && document.documentElement.classList.contains("dark"));
  useEffect(() => {
    const html = document.documentElement;
    const sync = () => setDark(html.classList.contains("dark"));
    sync();
    const mo = new MutationObserver(sync);
    mo.observe(html, { attributes: true, attributeFilter: ["class"] });
    return () => mo.disconnect();
  }, []);
  return dark;
}

export default function Demo(props: Partial<typeof settings> = {}) {
  const s = { ...settings, ...props };
  const dark = usePageDark();
  return (
    <div className="min-h-screen w-full">
      <HoviraDashboard homeName={s.homeName} glassBlur={s.glassBlur} glassTint={s.glassTint} accent={s.accent} theme={dark ? "dark" : "light"} />
    </div>
  );
}

Dependencies

More by Code And Chill

View all
  • Money River

    Money River

    5
  • Corbel Sales Dashboard

    Corbel Sales Dashboard

  • Kairo Revenue Analytics

    Kairo Revenue Analytics

  • Kestrel Marketing Dashboard

    Kestrel Marketing Dashboard

  • Halden Sales CRM

    Halden Sales CRM

  • Pane Glass Workspace

    Pane Glass Workspace

  • Fernly Project Dashboard

    Fernly Project Dashboard

More in Dashboards

View all
  • Creator Dashboard

    Creator Dashboard

    84
  • serf dashboard

    serf dashboard

    78
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Glass Dashboard

    Glass Dashboard

    1.1K
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.2K
  • App Dashboard Layout

    App Dashboard Layout

    564
  • Chart Component

    Chart Component

    46
  • Sidebar

    Sidebar

    422