buttons

package
v1.1.36 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accent

func Accent(props ButtonProps, children ...htmx.Node) htmx.Node

Accent generates an accent button element based on the provided properties.

func Button

func Button(props ButtonProps, children ...htmx.Node) htmx.Node

Button generates a button element based on the provided properties.

func Error

func Error(props ButtonProps, children ...htmx.Node) htmx.Node

Error generates an error button element based on the provided properties.

func Ghost

func Ghost(props ButtonProps, children ...htmx.Node) htmx.Node

Ghost generates a ghost button element based on the provided properties.

func Glass

func Glass(props ButtonProps, children ...htmx.Node) htmx.Node

Glass generates a glass button element based on the provided properties.

func Info

func Info(props ButtonProps, children ...htmx.Node) htmx.Node

Info generates an info button element based on the provided properties.

func Link(props ButtonProps, children ...htmx.Node) htmx.Node

Link generates a link button element based on the provided properties.

func Neutral

func Neutral(props ButtonProps, children ...htmx.Node) htmx.Node

Neutral generates a neutral button element based on the provided properties.

func Outline

func Outline(props ButtonProps, children ...htmx.Node) htmx.Node

Outline generates an outline button element based on the provided properties.

func OutlineAccent

func OutlineAccent(props ButtonProps, children ...htmx.Node) htmx.Node

OutlineAccent generates an outline accent button element based on the provided properties.

func OutlineError

func OutlineError(props ButtonProps, children ...htmx.Node) htmx.Node

OutlineError generates an outline error button element based on the provided properties.

func OutlineInfo

func OutlineInfo(props ButtonProps, children ...htmx.Node) htmx.Node

OutlineInfo generates an outline info button element based on the provided properties.

func OutlinePrimary

func OutlinePrimary(props ButtonProps, children ...htmx.Node) htmx.Node

OutlinePrimary generates an outline primary button element based on the provided properties.

func OutlineSecondary

func OutlineSecondary(props ButtonProps, children ...htmx.Node) htmx.Node

OutlineSecondary generates an outline secondary button element based on the provided properties.

func OutlineSuccess

func OutlineSuccess(props ButtonProps, children ...htmx.Node) htmx.Node

OutlineSuccess generates an outline success button element based on the provided properties.

func OutlineWarning

func OutlineWarning(props ButtonProps, children ...htmx.Node) htmx.Node

OutlineWarning generates an outline warning button element based on the provided properties.

func Primary

func Primary(props ButtonProps, children ...htmx.Node) htmx.Node

Primary generates a primary button element based on the provided properties.

func Secondary

func Secondary(props ButtonProps, children ...htmx.Node) htmx.Node

Secondary generates a secondary button element based on the provided properties.

func Success

func Success(props ButtonProps, children ...htmx.Node) htmx.Node

Success generates a success button element based on the provided properties.

func Warning

func Warning(props ButtonProps, children ...htmx.Node) htmx.Node

Warning generates a warning button element based on the provided properties.

Types

type ButtonProps

type ButtonProps struct {
	ClassNames htmx.ClassNames
	Type       string // The type of the button element.
	Disabled   bool   // Whether the button element is disabled.
}

ButtonProps represents the properties for a button element.

Jump to

Keyboard shortcuts

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