fab

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(props ...CloseProps) templ.Component

Close renders a wrapper for the close button that replaces the main button when the FAB is open.

func Fab

func Fab(props ...Props) templ.Component

Fab renders the floating action button container. Uses a focusable div (tabindex=0, role=button) because Safari has a CSS bug that prevents button elements from being focused properly.

func MainAction

func MainAction(props ...MainActionProps) templ.Component

MainAction renders a wrapper for the main action button that replaces the main button when the FAB is open.

Types

type CloseProps

type CloseProps struct {
	Class      string
	Attributes templ.Attributes
}

type MainActionProps

type MainActionProps struct {
	Class      string
	Attributes templ.Attributes
}

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Flower     bool
}

Jump to

Keyboard shortcuts

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