App UI kits › Hearth › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
photos | HePhotos | ||
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 |
setBrightness(v: number): voidsetBlinds(v: 'open' | 'half' | 'closed'): voiddestroy(): voidimport HearthRoom from './HearthRoom';
<HearthRoom />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Smart home app.