Screen

screen · Canvas · All components

One view of the product in a device frame. Children stack vertically.

Screen example

board
  screen phone "phone"
    heading "390 × 844"
    text "Phone and desktop screens show a status bar or browser bar (chrome). Turn it off with chrome=false." muted
  screen custom "custom" width=260 height=200
    heading "Any size" level=2
    text "device=custom with width and height" muted

Writing it

Props

Prop Values Notes
name (main text) string Label shown above the screen
device phone, tablet, desktop, custom
width number Overrides the device width
height number Overrides the device height, e.g. height=1400 for a long scrolling page
chrome boolean Phone status bar / desktop browser bar. Default true for phone and desktop.
padding number
gap number

tsquare 0.9.0 · View this page on GitHub