Documentation
¶
Index ¶
- Constants
- func ButtonBack() templ.Component
- func ButtonBackToTop() templ.Component
- func GenerateImageProxyURL(ctx context.Context, url, props string) string
- func Heading1() templ.Component
- func Heading2() templ.Component
- func Heading3() templ.Component
- func LoadingIndicator(id string) templ.Component
- func Modal(id string, open bool) templ.Component
- func NewProxiedImage(img *types.ImageInfo, props string, options ...element.Option) templ.Component
- func Paragraph() templ.Component
- func Thumbnail(img *types.ImageInfo, name string, size int) templ.Component
- type ProxiedImage
Constants ¶
View Source
const ( ImgProxyKey contextKey = "imgproxy_key" ImgProxySalt contextKey = "imgproxy_salt" )
View Source
const ModalContainerID = models.ElementID("modals")
ModalContainerID points to an element that holds a modal.
Variables ¶
This section is empty.
Functions ¶
func ButtonBack ¶ added in v0.35.0
ButtonBack adds a button that will trigger the browser to navigate back in history.
func ButtonBackToTop ¶ added in v0.35.0
ButtonBackToTop adds a "back to top" button that is only shown when the user has scrolled down the page.
func GenerateImageProxyURL ¶ added in v0.73.0
func LoadingIndicator ¶ added in v0.75.0
LoadingIndicator adds a loading indicator that is displayed while a HTMX request is processing.
func NewProxiedImage ¶ added in v0.73.0
Types ¶
type ProxiedImage ¶ added in v0.73.0
Click to show internal directories.
Click to hide internal directories.