0Views
0Copies
Variants

API Reference
Props for <FloorPlanHover />
| Prop | Type | Default | Description |
|---|---|---|---|
| wallColor | string | "#18201c" | The walls around and between the rooms. |
| inkColor | string | "#18201c" | The room names, the doors and windows, and the readout's fill. |
| sheetColor | string | "#fbfaf6" | The sheet the plan is drawn on: every room, the dimension labels and the room chip. |
| greyColor | string | "#5a615b" | Dimension lines, sizes under the room names and the readout's text. |
| accentColor | string | "#245c45" | The corner marks on the open room, the focus ring and the crosshair lines. |
| roomColors | string[] | [] | Fills the rooms in turn. Empty leaves every room the sheet's color. |
| Prop | Type | Default | Description |
|---|---|---|---|
| unit | 'imperial' | 'metric' | "imperial" | Measurements as 24'-6" or 7.4 m. |
| hallDetail | 'navigator' | 'stairs' | 'none' | "navigator" | What the hall holds: the open room's name with buttons that step through the rooms, its own name with a stair, or its name alone. |
| labelPosition | 'center' | 'corner' | 'foot' | "center" | Where a room's name sits: in its middle, its top left corner, or along its foot, where it stays over the open photo. |
| font | FontValue | {"fontFamily":"Mona Sans","fontWeight":600,"letterSpacing":"0em"} | The room names and the open room's chip. The component doesn't load the font: add it to your app. |
| monoFont | FontValue | {"fontFamily":"IBM Plex Mono","fontWeight":400,"letterSpacing":"0em"} | The measurements and the crosshair readout. The component doesn't load the font: add it to your app. |
| prompt | string | "Pick a room" | The hall's text while no room is open. |
| Prop | Type | Default | Description |
|---|---|---|---|
| reveal | 'wipe' | 'iris' | 'rise' | "wipe" | How a room's photo opens: across it, as a circle from where the pointer came in, or up from its foot. |
| cellSize | number | 5 | Length of one grid cell in real life, in feet or metres by the unit. Drives every measurement shown. |
| labelScale | number | 1 | Size of the room names. |
| crosshairFollow | number | 0.35 | How quickly the survey lines catch the pointer. Lower trails more. |
| hoverDelay | number | 80 | How long the pointer rests on a room before it opens. |
| hoverHint | number | 0.16 | How strongly the room's photo shows through in grey while the pointer rests on it, before it opens. |
| revealDuration | number | 0.75 | How long a room's photo takes to open. |
| revealZoom | number | 1.06 | How far the photo is zoomed as it opens, settling to 1. 1 turns the zoom off. |
| Prop | Type | Default | Description |
|---|---|---|---|
| wallThickness | number | 5 | Thickness of the inner walls. The outer walls are about 1.8× as thick. |
| cornerRadius | number | 0 | Rounds the corners of every room; less on a small plan. |
| restPhoto | number | 0 | How strongly every room's photo shows in warm grey while nothing is open. 0 hides them. |
| dimOthers | number | 0 | How far the other rooms fade into the sheet while one is open. 0 leaves them as they are. |
| showOpenings | boolean | true | Shows the doors and windows cut into the walls. |
| showSizes | boolean | true | Shows each room's measurements. |
| showHatching | boolean | true | Hatches the hall. Off leaves it a plain tint. |
| showMarks | boolean | true | Shows the corner marks on the open room. |
| uppercase | boolean | true | Sets the room names in spaced capitals. |
| showDimensions | boolean | true | Shows the two dimension lines with the overall width and depth around the plan. |
| showCrosshair | boolean | true | Shows survey lines that follow the pointer with a readout of its position. Fine pointers only. |
| Prop | Type | Default | Description |
|---|---|---|---|
| rooms | FloorPlanRoom[] | — | The rooms and where they sit on the plan's grid: id, name, short name, photo, focus, column and row spans, doors and windows. Defaults to a seven-room ground floor. |
| hall | FloorPlanHall | null | — | The corridor between the rooms, which holds the navigator. null leaves the space empty. |
| columns | number | — | Columns of the grid the rooms are placed on. Defaults to 12. |
| rows | number | — | Rows of the grid the rooms are placed on. Defaults to 8. |
| label | string | — | What screen readers hear for the whole plan; nothing is shown. Defaults to "Ground floor plan: pick a room to see it". |
| onActiveChange | (id: string | null) => void | — | Called with the id of the room that opens, or null when none is open. |
S
Motion score
Compositor-only
- Category
- Hover Effects
- Framework
- React
- Published
- Nov 27, 2026
- Dependencies
- Variants
Floor Plan Hover
A dimensioned architectural floor plan where every room is a button. Hovering a room opens its photograph with a left-to-right wipe, corner marks and a name chip, a navigator in the hall names it and steps to the next, and survey lines with a live measurement readout follow the pointer. The colors, rooms, units, wall thickness, timings and fonts can all be set.