Give the frame the box, the finish, and the screen place, then draw the body.
kiosk-frame.tsx
DeviceFrame
<figure>| Prop | Type | Default | Description |
|---|---|---|---|
| box | — | The figure box in pt: the body plus the keys that stand out of it (insetBox). | |
| finish | — | The colors of the finish, written as --device-<key in kebab case> on the root. | |
| screen | DeviceScreenPlace | — | Where the screen sits on the stage, written as --device-screen-* and --safe-area-*. |
| ...props | <figure> attributes | — | Every other attribute goes to the <figure>, with a ref. |
DeviceFrameHardware
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| body | — | The body size in pt, before a turn. | |
| inset | — | The space the keys take around the body on the stage: the body sits left and top in. | |
| turn | "left""right" | — | A quarter turn of the body: left (rotate(-90deg), the right side goes to the top) or right (rotate(90deg)). Pair it with turnInset for inset. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
DeviceFrameDisplay
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| platform | "android""apple""windows" | — | The platform whose system font the screen and its status bar take (deviceFontVariants): app content inside the screen inherits it. Each device sets its own. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
DeviceFrameScreen
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |









