drawers

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

func Content(p ContentProps, children ...htmx.Node) htmx.Node

Content is a component that renders the content of a drawer.

func Drawer

func Drawer(p Props, children ...htmx.Node) htmx.Node

Drawer is a component that renders a drawer.

func Side

func Side(p SideProps, children ...htmx.Node) htmx.Node

Side is a component that renders the side of a drawer.

func Toggle

func Toggle(p ToggleProps, children ...htmx.Node) htmx.Node

Toggle is a component that renders a drawer toggle button.

func ToggleButton

func ToggleButton(p ToggleButtonProps, children ...htmx.Node) htmx.Node

ToggleButton is a component that renders a drawer toggle button.

Types

type ContentProps

type ContentProps struct {
	// ClassNames is a set of class names to apply to the drawer content.
	htmx.ClassNames
}

ContentProps is the props for the DrawerContent component.

type Props

type Props struct {
	// Open indicates whether the drawer is open.
	Open bool
	// ClassNames is a set of class names to apply to the drawer.
	htmx.ClassNames
}

Props is the props for the Drawer component.

type SideProps

type SideProps struct {
	// ClassNames is a set of class names to apply to the drawer side.
	htmx.ClassNames
}

SideProps is the props for the DrawerSide component.

type ToggleButtonProps

type ToggleButtonProps struct {
	// ID is the ID of the drawer toggle button.
	ID string
	// ClassNames is a set of class names to apply to the button.
	htmx.ClassNames
}

ToggleButtonProps is the props for the DrawerToggleButton component.

type ToggleProps

type ToggleProps struct {
	// ID is the ID of the drawer toggle button.
	ID string
	// AriaLabel is the aria-label of the drawer toggle button.
	AriaLabel string
	// ClassNames is a set of class names to apply to the button.
	htmx.ClassNames
}

ToggleProps is the props for the DrawerToggle component.

Jump to

Keyboard shortcuts

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