button

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Option

type Option func(button *button)

func BackgroundColor

func BackgroundColor(backgroundColor string) Option

func BorderRadius

func BorderRadius(borderRadius int) Option

func ButtonStyle added in v0.0.4

func ButtonStyle(buttonStyle theme_style.ButtonStyle) Option

func Class

func Class(class string) Option

func Height

func Height(opts ...breakpoint.BreakpointOptions[int]) Option

func ID

func ID(id string) Option

func Label added in v0.0.5

func Label(label string) Option

func MaxWidth

func MaxWidth(opts ...breakpoint.BreakpointOptions[int]) Option

func OnClick

func OnClick(handler options.OnClickHandler) Option

func Padding added in v0.0.4

func Tooltip

func Tooltip(tooltip string) Option

func Visible

func Visible(opts ...breakpoint.BreakpointOptions[bool]) Option

func Width

func Width(opts ...breakpoint.BreakpointOptions[int]) Option

func WidthP

func WidthP(opts ...breakpoint.BreakpointOptions[float64]) Option

Jump to

Keyboard shortcuts

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