Documentation
¶
Index ¶
- func Content(p ContentProps, children ...htmx.Node) htmx.Node
- func Drawer(p Props, children ...htmx.Node) htmx.Node
- func Side(p SideProps, children ...htmx.Node) htmx.Node
- func Toggle(p ToggleProps, children ...htmx.Node) htmx.Node
- func ToggleButton(p ToggleButtonProps, children ...htmx.Node) htmx.Node
- type ContentProps
- type Props
- type SideProps
- type ToggleButtonProps
- type ToggleProps
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 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.