AppNotificationPreview

A lock-screen picture of a push notification on iOS or Android, for a "send notification" form. It clamps text the way each phone does and warns when the title or message would be cut off.

Install: pnpm add-component AppNotificationPreview

Composer

Bind the preview to the form fields. The sample message is long enough to be cut: switch to Android to lose two more lines, or expand to see all of it.

Drips out of the island

With island, the pill, a neck and the card are three shapes in one AppBlob: a drop falls out of the pill on a stretched neck and swells into the card, then the neck snaps and the pill springs back. The text rises in as it lands. Pine bounces; reduced motion shows the card at once.

iOS and Android

The same notification with an image. iOS shows the image under the text; Android shows a thumbnail beside it until the card is expanded.

Stack and wallpaper

stack draws the cards waiting behind this one. wallpaper takes any CSS background.

Static picture

For marketing or docs: pin the clock with time and turn off the cut-off note.

API