button

package
v0.0.0-...-1cc67c1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

templ: version: v0.2.778

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Root

func Root(props RootProps) templ.Component

Types

type RootProps

type RootProps struct {
	Type    Type    // default: [TypeButton]
	Variant Variant // default: [VariantDefault]
	Size    Size    // default: [SizeDefault]
	p.CoreProps
}

type Size

type Size int
const (
	SizeDefault Size = iota
	SizeSmall
	SizeLarge
	SizeIcon
)

func (Size) Class

func (s Size) Class() string

type Type

type Type int
const (
	TypeButton Type = iota
	TypeSubmit
	TypeReset
)

func (Type) String

func (t Type) String() string

type Variant

type Variant int
const (
	VariantDefault Variant = iota
	VariantDestructive
	VariantSecondary
	VariantOutline
	VariantGhost
	VariantLink
)

func (Variant) Class

func (v Variant) Class() string

Jump to

Keyboard shortcuts

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