sheet

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(props ...CloseProps) templ.Component

func Content

func Content(props ...ContentProps) templ.Component

func Description

func Description(props ...DescriptionProps) templ.Component
func Footer(props ...FooterProps) templ.Component
func Header(props ...HeaderProps) templ.Component

func Sheet

func Sheet(props ...Props) templ.Component

func Title

func Title(props ...TitleProps) templ.Component

func Trigger

func Trigger(props ...TriggerProps) templ.Component

Types

type CloseProps

type CloseProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	For        string
}

type ContentProps

type ContentProps struct {
	ID              string
	Class           string
	Attributes      templ.Attributes
	HideCloseButton bool
	Side            Side //
	Open            bool // Initial open state for standalone usage
}

type DescriptionProps

type DescriptionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type FooterProps

type FooterProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type HeaderProps

type HeaderProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type Props

type Props struct {
	ID               string
	Class            string
	Attributes       templ.Attributes
	Side             Side
	Open             bool
	DisableClickAway bool
	DisableESC       bool
}

type Side

type Side string
const (
	SideTop    Side = "top"
	SideRight  Side = "right"
	SideBottom Side = "bottom"
	SideLeft   Side = "left"
)

type TitleProps

type TitleProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TriggerProps

type TriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	For        string // Reference to a specific sheet ID (for external triggers)
}

Jump to

Keyboard shortcuts

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