Documentation ¶
Overview ¶
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
Index ¶
- Variables
- func Content(props ContentProps) templ.Component
- func Description(props DescriptionProps) templ.Component
- func Overlay(props OverlayProps) templ.Component
- func Root(props RootProps) templ.Component
- func Title(props TitleProps) templ.Component
- type ContentProps
- type DescriptionProps
- type OverlayProps
- type RootProps
- type TitleProps
Constants ¶
This section is empty.
Variables ¶
View Source
var Close = templ.Attributes{ "x-on:click": fmt.Sprintf("%s = false", control), }
There is no element for dialog close, just add these attributes to your component.
View Source
var Trigger = templ.Attributes{ "aria-haspopup": "dialog", ":aria-expanded": control, ":aria-controls": p.Id(scopeName, contentName), ":data-state": getState(control), "x-on:click": fmt.Sprintf("%s = true", control), }
There is no element for dialog trigger, just add these attributes to your component.
Functions ¶
func Content ¶
func Content(props ContentProps) templ.Component
func Description ¶
func Description(props DescriptionProps) templ.Component
func Overlay ¶
func Overlay(props OverlayProps) templ.Component
func Title ¶
func Title(props TitleProps) templ.Component
Types ¶
type ContentProps ¶
type DescriptionProps ¶
type OverlayProps ¶
type TitleProps ¶
Click to show internal directories.
Click to hide internal directories.