App UI kits › Roost › Will it fit?

Will it fit?

Drag your own sofa, bed or table onto the plan: it bumps into walls, turns red when it overlaps and the measurements follow your finger.

Will it fit? is a screen from Roost, an app ui kit with 13 screens: A home search app where you draw your neighbourhood and walk through the plan. Price: $5 for the whole pack.

Built with: furniture collision, live dimensions, rotate to fit.

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.

Will it fit? props

PropTypeDefaultDescription
darkboolean
piecesRoostFitPiece[]sofa, bed, bookcase, desk, armchair, dining tableYour furniture. Default: sofa, bed, bookcase, desk, armchair, dining table.
autoplayboolean
onChange(allFit: boolean, placed: string[]) => void

Methods on the ref

Use it in React

import RoostFit from './RoostFit';

<RoostFit />

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

More in Roost

Good for: Real estate app UI, USA (dollars).