Documentation
¶
Index ¶
- func Content(props ...ContentProps) templ.Component
- func Footer(props ...FooterProps) templ.Component
- func Group(props ...GroupProps) templ.Component
- func GroupLabel(props ...GroupLabelProps) templ.Component
- func Header(props ...HeaderProps) templ.Component
- func Inset(props ...InsetProps) templ.Component
- func Layout(props ...LayoutProps) templ.Component
- func Menu(props ...MenuProps) templ.Component
- func MenuBadge(props ...MenuBadgeProps) templ.Component
- func MenuButton(props ...MenuButtonProps) templ.Component
- func MenuItem(props ...MenuItemProps) templ.Component
- func MenuSub(props ...MenuSubProps) templ.Component
- func MenuSubButton(props ...MenuSubButtonProps) templ.Component
- func MenuSubItem(props ...MenuSubItemProps) templ.Component
- func Script() templ.Component
- func Separator(props ...SeparatorProps) templ.Component
- func Sidebar(props ...Props) templ.Component
- func Trigger(props ...TriggerProps) templ.Component
- type Collapsible
- type ContentProps
- type FooterProps
- type GroupLabelProps
- type GroupProps
- type HeaderProps
- type InsetProps
- type LayoutProps
- type MenuBadgeProps
- type MenuButtonProps
- type MenuButtonSize
- type MenuItemProps
- type MenuProps
- type MenuSubButtonProps
- type MenuSubItemProps
- type MenuSubProps
- type Props
- type SeparatorProps
- type Side
- type TriggerProps
- type Variant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Content ¶ added in v1.1.0
func Content(props ...ContentProps) templ.Component
func Footer ¶ added in v1.1.0
func Footer(props ...FooterProps) templ.Component
func Group ¶ added in v1.1.0
func Group(props ...GroupProps) templ.Component
func GroupLabel ¶ added in v1.1.0
func GroupLabel(props ...GroupLabelProps) templ.Component
func Header ¶ added in v1.1.0
func Header(props ...HeaderProps) templ.Component
func Inset ¶ added in v1.1.0
func Inset(props ...InsetProps) templ.Component
func Layout ¶ added in v1.1.0
func Layout(props ...LayoutProps) templ.Component
func MenuBadge ¶ added in v1.1.0
func MenuBadge(props ...MenuBadgeProps) templ.Component
func MenuButton ¶ added in v1.1.0
func MenuButton(props ...MenuButtonProps) templ.Component
func MenuItem ¶ added in v1.1.0
func MenuItem(props ...MenuItemProps) templ.Component
func MenuSub ¶ added in v1.1.0
func MenuSub(props ...MenuSubProps) templ.Component
func MenuSubButton ¶ added in v1.1.0
func MenuSubButton(props ...MenuSubButtonProps) templ.Component
func MenuSubItem ¶ added in v1.1.0
func MenuSubItem(props ...MenuSubItemProps) templ.Component
func Separator ¶ added in v1.1.0
func Separator(props ...SeparatorProps) templ.Component
func Trigger ¶ added in v1.1.0
func Trigger(props ...TriggerProps) templ.Component
Types ¶
type Collapsible ¶ added in v1.1.0
type Collapsible string
const ( CollapsibleOffcanvas Collapsible = "offcanvas" // default CollapsibleIcon Collapsible = "icon" CollapsibleNone Collapsible = "none" )
type ContentProps ¶ added in v1.1.0
type ContentProps struct {
ID string
Class string
Attributes templ.Attributes
}
type FooterProps ¶ added in v1.1.0
type FooterProps struct {
}
type GroupLabelProps ¶ added in v1.1.0
type GroupLabelProps struct {
ID string
Class string
Attributes templ.Attributes
}
type GroupProps ¶ added in v1.1.0
type GroupProps struct {
ID string
Class string
Attributes templ.Attributes
}
type HeaderProps ¶ added in v1.1.0
type HeaderProps struct {
ID string
Class string
Attributes templ.Attributes
}
type InsetProps ¶ added in v1.1.0
type InsetProps struct {
ID string
Class string
Attributes templ.Attributes
}
type LayoutProps ¶ added in v1.1.0
type LayoutProps struct {
ID string
Class string
Attributes templ.Attributes
}
type MenuBadgeProps ¶ added in v1.1.0
type MenuBadgeProps struct {
ID string
Class string
Attributes templ.Attributes
}
type MenuButtonProps ¶ added in v1.1.0
type MenuButtonProps struct {
ID string
Class string
Attributes templ.Attributes
Href string
IsActive bool
Size MenuButtonSize // default: "default"
Tooltip string // Tooltip text to show when sidebar is collapsed
}
type MenuButtonSize ¶ added in v1.1.0
type MenuButtonSize string
const ( MenuButtonSizeDefault MenuButtonSize = "default" // default MenuButtonSizeSm MenuButtonSize = "sm" MenuButtonSizeLg MenuButtonSize = "lg" )
type MenuItemProps ¶ added in v1.1.0
type MenuItemProps struct {
ID string
Class string
Attributes templ.Attributes
}
type MenuProps ¶ added in v1.1.0
type MenuProps struct {
ID string
Class string
Attributes templ.Attributes
}
type MenuSubButtonProps ¶ added in v1.1.0
type MenuSubItemProps ¶ added in v1.1.0
type MenuSubItemProps struct {
ID string
Class string
Attributes templ.Attributes
}
type MenuSubProps ¶ added in v1.1.0
type MenuSubProps struct {
ID string
Class string
Attributes templ.Attributes
}
type Props ¶ added in v1.1.0
type Props struct {
ID string
Class string
Attributes templ.Attributes
Side Side // default: "left"
Variant Variant // default: "sidebar"
Collapsible Collapsible // default: "offcanvas"
Collapsed bool // default: false (sidebar open)
KeyboardShortcut string // default: "b"
}
type SeparatorProps ¶ added in v1.1.0
type SeparatorProps struct {
ID string
Class string
Attributes templ.Attributes
}
type TriggerProps ¶ added in v1.1.0
type TriggerProps struct {
ID string
Class string
Attributes templ.Attributes
Target string // Target sidebar ID to toggle
}
Click to show internal directories.
Click to hide internal directories.