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
- type Composable
- func CircularProgressIndicator(progress float32, options ...IndicatorOption) Composable
- func LinearProgressIndicator(progress float32, options ...IndicatorOption) Composable
- func LoadingContainer(isLoading bool, content Composable, options ...LoadingContainerOption) Composable
- func LoadingIndicator(options ...IndicatorOption) Composable
- type Composer
- type IndicatorOption
- type IndicatorOptions
- type LoadingContainerOption
- type LoadingContainerOptions
- type MutableValue
- type ThemeManager
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 IndicatorOption ¶
type IndicatorOption func(o *IndicatorOptions)
func WithIndicator ¶
func WithIndicator(ind *indicator.Indicator) IndicatorOption
func WithModifier ¶
func WithModifier(m ui.Modifier) IndicatorOption
type IndicatorOptions ¶
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
Click to show internal directories.
Click to hide internal directories.