bottomappbar

package
v0.1.57 Latest Latest
Warning

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

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

Documentation

Overview

Package bottomappbar contains Material 3 Bottom App Bar components.

Reference: [Bottom App Bar](https://m3.material.io/components/bottom-app-bar/overview) Specs: [Bottom App Bar Specs](https://m3.material.io/components/bottom-app-bar/specs)

Index

Constants

This section is empty.

Variables

View Source
var BottomAppBarDefaults = bottomAppBarDefaults{}

BottomAppBarDefaults holds the default values for BottomAppBar.

Functions

This section is empty.

Types

type BottomAppBarColors

type BottomAppBarColors struct {
	ContainerColor graphics.Color
	ContentColor   graphics.Color
}

BottomAppBarColors represents the colors used by a BottomAppBar.

type BottomAppBarOption

type BottomAppBarOption func(*BottomAppBarOptions)

BottomAppBarOption is a function that configures a BottomAppBar.

func WithContainerColor

func WithContainerColor(col graphics.Color) BottomAppBarOption

func WithContentColor

func WithContentColor(col graphics.Color) BottomAppBarOption

func WithContentPadding

func WithContentPadding(p PaddingValues) BottomAppBarOption

func WithFloatingActionButton

func WithFloatingActionButton(fab Composable) BottomAppBarOption

func WithModifier

func WithModifier(m ui.Modifier) BottomAppBarOption

func WithTonalElevation

func WithTonalElevation(e unit.Dp) BottomAppBarOption

type BottomAppBarOptions

type BottomAppBarOptions struct {
	Modifier             ui.Modifier
	ContainerColor       graphics.Color
	ContentColor         graphics.Color
	TonalElevation       unit.Dp
	ContentPadding       PaddingValues
	FloatingActionButton Composable
}

BottomAppBarOptions configuration

func DefaultBottomAppBarOptions

func DefaultBottomAppBarOptions(c Composer) BottomAppBarOptions

DefaultBottomAppBarOptions returns the default options.

type Composable

type Composable = api.Composable

func BottomAppBar

func BottomAppBar(
	actions Composable,
	options ...BottomAppBarOption,
) Composable

BottomAppBar displays navigation and key actions at the bottom of the screen.

type Composer

type Composer = api.Composer

type PaddingValues

type PaddingValues struct {
	Start, Top, End, Bottom unit.Dp
}

PaddingValues describes the padding to be applied to the content.

Jump to

Keyboard shortcuts

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