What floats over the page: popovers, hover cards and tooltips beside the element that opens them, sheets from an edge of the screen, a simple menu, and toasts. There are no trigger parts: what floats is written under what opens it.
Popover
A panel beside the element it is written under. A press opens it; a press outside, Escape, or a press on anything inside marked data-close shuts it.
Under what opens itThe Popover is the content. PopoverHeader, PopoverTitle and PopoverDescription set the words.
Share this page
Anyone with the link can read it. Nothing here is sent anywhere.
mote.dev/p/floating
With neither side nor align it sits under, in line with the start.
Tab moves inside it like anywhere else; the page behind stays live.
Placementsside says which edge, align where along it. A panel that would leave the screen flips to the other side.
align
side topalign center
side leftalign center
side rightalign center
side bottomalign center
A form in a popoverFields in the panel are bound to drafts; Apply copies them out and, being marked data-close, shuts the panel.
Dimensions
Set the dimensions for the layer.
applied
640 × 360, clipped · applied 0 times
640 × 360
Hover Card
A card that shows while the pointer or the keyboard rests on something, and goes a moment after both have left.
On a nameHoverCard under a link or a button. data-delay and data-close-delay are the waits in milliseconds (150 and 200 unless said).
Written by
ML
@moteA language where a file is an app: declarations, then markup.
Joined November 2025
and friends.
following
no
Side and alignHoverCardContent is the same panel under its other name; both take side, align and a width.
side top, align start
side right, align center
side bottom, align end
side left, after 600 ms
Tooltip
A word about what the pointer is on, or what the keyboard has reached.
SidesAbove unless said.
Add to library
On the bottom
On the left
On the right
With a key, and a waitTooltipContent lays out words and a Kbd in a row. delay=400 keeps a toolbar quiet as the pointer crosses it.
Bold⌘B
Italic⌘I
Underline⌘U
Save changes⌘S
The quick brown fox
Sheet
A window from an edge of the screen. It is the browser's modal dialog: Escape and a press outside close it, and open is written back.
One lineSheet open= title= side=, with what it holds under it.
open · side
closed · right
Written outSheetContent is the window and takes open and side; SheetClose closes it on a press on anything inside. Save writes the drafts back; Close leaves them.
AL
Ada Lovelaceada@example.com
saved 0×
Menu
The kit's simple menu: a list of things to do under the button that opens it. Pressing an item closes it.
Under a buttonMenuLabel names a run of items, MenuSeparator parts them; an item may be disabled, or danger=true.
This fileDanger
last item
nothing yet
On each row of a listThe same Menu under an icon button; its items act on their own row.
Quarterly report.pdf
96 KB
Notes.md
144 KB
files
2
Sonner
Toasts. The page holds a list and adds to it; one Toaster shows the pile, newest in front, and takes each toast off the list when its time is up, when it is swiped away, or when its button is pressed. Rest the pointer on the pile to spread it and stop the clocks.
Every kindtype: default, success, info, warning, error, loading. A loading toast stays until the page changes its type in place. An action is a button on the toast: press= on the Toaster is called with the toast's id.
LoadingIt stays until the page says it is done.
showing
0
raised
0
undone
0
Where, and howThese set the one Toaster of this page: raise a few toasts, then change them.
position
richColorsTint each toast by its type.
expandKeep the pile spread out. Spread toasts wait.
closeButtonA ✕ on each toast.
duration4 s each
One toastSonnerToast is what the Toaster draws for each record; here six stand on the page by themselves, spread (so no clock runs). Each can still be swiped sideways, and its button pressed.
rich
closeButton
Event has been createdMonday at 6:00pm
Changes savedEverything is kept.
A new version is readyIt installs on reopening.
Storage is almost full412 MB of 500 MB used.
Could not sendTry again.
Uploading report.pdf…2 of 5 MB
dismissed
none yet: swipe one sideways
action pressed
none yet: press Retry
The built-in toast()For the simple case there is nothing to hold: one call puts a note in the corner for four seconds. A second argument is a second line; a third, "error", colours it.