progress

package
v0.1.113 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package progress contains Material 3 Progress Indicators components.

Reference: [Progress Indicators](https://m3.material.io/components/progress-indicators/overview) Specs: [Progress Indicators Specs](https://m3.material.io/components/progress-indicators/specs)

Index

Constants

View Source
const (
	Material3LinearProgressNodeID   = "Material3LinearProgress"
	Material3CircularProgressNodeID = "Material3CircularProgress"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Composable

type Composable = api.Composable

func CircularProgressIndicator

func CircularProgressIndicator(progress float32, options ...IndicatorOption) Composable

func LinearProgressIndicator

func LinearProgressIndicator(progress float32, options ...IndicatorOption) Composable

func LoadingContainer added in v0.1.78

func LoadingContainer(
	isLoading bool,
	content Composable,
	options ...LoadingContainerOption,
) Composable

LoadingContainer wraps content with a loading overlay when isLoading is true. The overlay blocks input and displays a loading indicator.

func LoadingIndicator

func LoadingIndicator(options ...IndicatorOption) Composable

LoadingIndicator displays a circular indeterminate progress indicator.

type Composer

type Composer = api.Composer

type IndicatorOption

type IndicatorOption func(o *IndicatorOptions)

func WithIndicator

func WithIndicator(ind *indicator.Indicator) IndicatorOption

func WithModifier

func WithModifier(m ui.Modifier) IndicatorOption

type IndicatorOptions

type IndicatorOptions struct {
	Modifier  ui.Modifier
	Indicator *indicator.Indicator
}

func DefaultIndicatorOptions

func DefaultIndicatorOptions() IndicatorOptions

type LoadingContainerOption added in v0.1.78

type LoadingContainerOption func(*LoadingContainerOptions)

func WithIndicatorOptions added in v0.1.83

func WithIndicatorOptions(options ...IndicatorOption) LoadingContainerOption

func WithLoadingIndicator added in v0.1.78

func WithLoadingIndicator(indicator Composable) LoadingContainerOption

type LoadingContainerOptions added in v0.1.78

type LoadingContainerOptions struct {
	LoadingIndicator Composable
	IndicatorOptions []IndicatorOption
}

func DefaultLoadingContainerOptions added in v0.1.78

func DefaultLoadingContainerOptions() LoadingContainerOptions

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