button

package
v0.1.65 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package button contains Material 3 Button components.

Reference: [Buttons](https://m3.material.io/components/buttons/overview) Specs: [Buttons Specs](https://m3.material.io/components/buttons/specs)

Index

Constants

View Source
const Material3ButtonNodeID = "Material3Button"

Variables

This section is empty.

Functions

This section is empty.

Types

type ButtonConstructorArgs

type ButtonConstructorArgs struct {
	Button       *button.Button
	OnClick      func()
	LabelContent string
}

type ButtonOption

type ButtonOption func(o *ButtonOptions)

func WithButton

func WithButton(button *button.Button) ButtonOption

func WithEnabled

func WithEnabled(enabled bool) ButtonOption

func WithModifier

func WithModifier(m ui.Modifier) ButtonOption

type ButtonOptions

type ButtonOptions struct {
	Modifier ui.Modifier
	Button   *button.Button
	Enabled  bool
}

func DefaultButtonOptions

func DefaultButtonOptions() ButtonOptions

type Composable

type Composable = api.Composable

func Elevated

func Elevated(onClick func(), label string, options ...ButtonOption) Composable

func Filled

func Filled(onClick func(), label string, options ...ButtonOption) Composable

func FilledTonal

func FilledTonal(onClick func(), label string, options ...ButtonOption) Composable

func Outlined

func Outlined(onClick func(), label string, options ...ButtonOption) Composable

func Text

func Text(onClick func(), label string, options ...ButtonOption) Composable

type Composer

type Composer = api.Composer

type MutableValue

type MutableValue = state.MutableValue

type ThemeManager

type ThemeManager = theme.ThemeManager

Jump to

Keyboard shortcuts

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