svelte-tourlight GitHub

Phone bottom sheet

Below 640px the tooltip becomes a sheet: full width, safe-area padding, at most 45% of the screen. It docks at the bottom, or at the top when the target sits low (like a fixed tab bar), so the sheet never covers it.

sheetPosition

The frame is a 360px-wide page running the same library. Start its tour: step 3 targets the fixed tab bar. In auto mode the sheet moves to the top for that step.

sheetPosition and mobileBreakpoint
<!-- Default: a sheet below 640px, docked at the bottom,
     or at the top when the target sits in the lower 45% -->
<SpotlightProvider sheetPosition="auto">

<!-- Force a side -->
<SpotlightProvider sheetPosition="top">
<SpotlightProvider sheetPosition="bottom">

<!-- Change the breakpoint, or 0 to always float -->
<SpotlightProvider mobileBreakpoint={768}>
<SpotlightProvider mobileBreakpoint={0}>