buttons

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 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(p ButtonProps, children ...htmx.Node) htmx.Node

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

func Button

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

Button generates a button element based on the provided properties.

func Error

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

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

func Ghost

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

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

func Glass

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

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

func Info

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

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

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

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

func Neutral

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

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

func Outline

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

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

func OutlineAccent

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

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

func OutlineError

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

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

func OutlineInfo

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

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

func OutlinePrimary

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

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

func OutlineSecondary

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

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

func OutlineSuccess

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

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

func OutlineWarning

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

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

func Primary

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

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

func Secondary

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

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

func Success

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

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

func Warning

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

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

Types

type ButtonProps

type ButtonProps struct {
	ClassNames map[string]bool // The class names for the button element.
	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