API reference up.Preview
class

Instances of up.Preview can describe temporary changes to a page.

You can use this to describe arbitrary loading state or implement optimistic rendering.

Previews are usually defined using up.preview() (lowercase) and then applied using the [up-preview] attribute or { preview } option. See Previews for an overview.


Features