dialog

package
v0.0.0-...-1cc67c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 5 Imported by: 0

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

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 Root

func Root(props RootProps) templ.Component

func Title

func Title(props TitleProps) templ.Component

Types

type ContentProps

type ContentProps struct {
	p.CoreProps
}

type DescriptionProps

type DescriptionProps struct {
	p.CoreProps
}

type OverlayProps

type OverlayProps struct {
	p.CoreProps
}

type RootProps

type RootProps struct {
	p.CoreProps
}

type TitleProps

type TitleProps struct {
	p.CoreProps
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL