Skip to content
PreviewOne page, three marks: a box on the filled field, an arrow to the empty one, a ring where the agent clicked.
The sign-up page: Email filled in, Password left empty, Create account clicked

Shot

srcrequired
string
altrequired
string
widthrequired
number
The span it shows, in its marks' units.
heightrequired
number
marks
readonly ShotMark[]
Default: []
size
"frame" | "thumb"
Default: "frame"
frame: the picture whole at its own shape, up to --shot-max-h; one very tall or very wide stands whole inside a box of at most 2:1 either way, never as a thin strip. thumb: 32 by 20, zoomed onto focus.
focus
{ x: number; y: number }
A thumb's dotted centre.
zoom
number
How far a thumb is zoomed in: 2 by default.
animated
boolean
Default: false
The picture moves (a GIF). Its GIF badge is a button that stops and starts it, in any setting (M45); under reduced motion it starts stopped, on its first frame. A thumb has no room for the badge, so it holds its first frame. The badge's press is never onOpen's.
onOpen
() => void
Makes it a button.
label
string
rootStyle
RootStyle<ShotKnobs>

State machine

PreviewA capture appears without marks.
Dusk over the bay