drawer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

templ: version: v0.2.793

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drawer

func Drawer(props *Props) templ.Component

func DrawerToolbar

func DrawerToolbar(props *ToolbarProps) templ.Component

Types

type Props

type Props struct {
	ID           string        // ID to allow for identifing and targeting this Drawer.
	Title        string        // Title
	TitleID      string        // TitleCountID if the panel is going to show an OOB devired count
	Description  string        // Description is the subheading or description text for the sheet.
	Side         Side          // Side determines from which side the sheet will appear.
	Toolbar      *ToolbarProps // optional extra toolbar buttons
	Width        string        // tailwind css width
	XShow        string        // x-data value to show the dynamic header
	XText        string        // x-text value to display as title
	Class        string        // extra classes
	ClassDetails string        // extra classes applied to the detail section
}

Props defines the properties for the Drawer component.

type Side

type Side string

DrawerSide represents the side from which the sheet will appear.

const (
	Top    Side = "top"
	Right  Side = "right"
	Bottom Side = "bottom"
	Left   Side = "left"
)

Constants for sheet sides.

type ToolbarProps

type ToolbarProps struct {
	ID       string            // id for counts
	Title    string            // title, overridden in XText is present
	XText    string            // x-text value to display as title
	Controls []templ.Component // slice of Icon Buttons
	Class    string            //extra clesses, just in case...
}

Jump to

Keyboard shortcuts

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