App UI kits › Hearth › Living room

Living room

Drag the brightness and the room photo relights from the lamp’s own position; close the blinds and the evening comes down over it.

Living room is a screen from Hearth, an app ui kit with 11 screens: A smart home app built around a cut-away model of your house, where every lamp really lights its room. Price: $5 for the whole pack.

Built with: photo relight from a point, blinds over the photo, device list.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Living room props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosHePhotos
lamp[number, number]Where the lamp is in the photo, as fractions (0–1).
onChange(d: { brightness: number; blinds: string; devices: Record<string, boolean> }) => void

Methods on the ref

Use it in React

import HearthRoom from './HearthRoom';

<HearthRoom />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Hearth

Good for: Smart home app.