Documentation
¶
Index ¶
- func AppMetadataJSONLD() templ.Component
- func BrowserWindow(address string) templ.Component
- func MasonryGridBehavior() templ.Component
- func Mobile() templ.Component
- func MuxPlayer(video MuxVideo) templ.Component
- func PullToRefreshBehavior() templ.Component
- func PullToRefreshSentinel() templ.Component
- func ScrollRestoreBehavior() templ.Component
- type MuxVideo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppMetadataJSONLD ¶ added in v0.218.0
func BrowserWindow ¶
BrowserWindow renders a mock browser window. Insert an image with `class="w-full block"` as a child.
func MasonryGridBehavior ¶ added in v0.218.0
MasonryGridBehaviour loads a hyperscript behaviour that can be used for adding masonry grid functionality to a grid layout.
Usage:
- Add install MasonryGrid on <div class="grid"></div>.
- Add "masonry-grid", "relative" classes to <div class="grid"></div>.
- Add "masonry-item" class to each element in grid.
func Mobile ¶
Mobile renders a mock mobile. Insert an image with `class="w-full block aspect-9/19.5 object-cover"` as a child.
func PullToRefreshBehavior ¶ added in v0.218.0
PullToRefresh loads a hyperscript behaviour and sentinel element for controlling pull-to-refresh behavior on an element. Usage:
@PullToRefreshSentinel()
<div class="ptr-scroll" _="install PullToRefresh(threshold: 70)">
<!-- Element that can be pulled -->
<div class="ptr-content">
<!-- Content that will be refreshed. -->
</div>
</div>
func PullToRefreshSentinel ¶ added in v0.218.0
func ScrollRestoreBehavior ¶ added in v0.218.0
Types ¶
Click to show internal directories.
Click to hide internal directories.