button

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

templ: version: v0.2.793

Index

Constants

View Source
const (
	VariantPrimary = Variant(iota + 1)
	VariantSecondary
	VariantPrimaryOutline
	VariantSidebar
	VariantDanger
)
View Source
const (
	SizeNormal = Size(iota + 1)
	SizeMD
	SizeSM
	SizeXS
)

Variables

This section is empty.

Functions

func Danger

func Danger(props Props) templ.Component

func Primary

func Primary(props Props) templ.Component

func PrimaryOutline

func PrimaryOutline(props Props) templ.Component

func Secondary

func Secondary(props Props) templ.Component
func Sidebar(props Props) templ.Component

Types

type Props

type Props struct {
	Size    Size
	Fixed   bool
	Href    string
	Rounded bool
	Loading bool
	Class   string
	Icon    templ.Component
	Attrs   templ.Attributes
	// contains filtered or unexported fields
}

type Size

type Size int

type Variant

type Variant int

Jump to

Keyboard shortcuts

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