offcanvas

package
v0.0.0-...-72edb01 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

Index

Constants

View Source
const RootClassName = "offcanvas"

Variables

This section is empty.

Functions

func Show

func Show(props OffCanvasProps) templ.Component

Types

type OffCanvasPlacementClass

type OffCanvasPlacementClass string
const (
	OffCanvasStartPlacement  OffCanvasPlacementClass = "start"
	OffCanvasEndPlacement    OffCanvasPlacementClass = "end"
	OffCanvasTopPlacement    OffCanvasPlacementClass = "top"
	OffCanvasBottomPlacement OffCanvasPlacementClass = "bottom"
)

type OffCanvasProps

type OffCanvasProps struct {
	base.ElementProps
	Title              string
	IsShown            bool
	OffCanvasPlacement OffCanvasPlacementClass
	Size               SizeType
}

func (OffCanvasProps) BuildClassNames

func (ocp OffCanvasProps) BuildClassNames() (classes string)

type SizeType

type SizeType string
const (
	Small           SizeType = "-sm"
	Medium          SizeType = "-md"
	Large           SizeType = "-lg"
	ExtraLarge      SizeType = "-xl"
	ExtraExtraLarge SizeType = "-xxl"
)

Jump to

Keyboard shortcuts

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