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 ¶
- Variables
- type BottomAppBarColors
- type BottomAppBarOption
- func WithContainerColor(col graphics.Color) BottomAppBarOption
- func WithContentColor(col graphics.Color) BottomAppBarOption
- func WithContentPadding(p PaddingValues) BottomAppBarOption
- func WithFloatingActionButton(fab Composable) BottomAppBarOption
- func WithModifier(m ui.Modifier) BottomAppBarOption
- func WithTonalElevation(e unit.Dp) BottomAppBarOption
- type BottomAppBarOptions
- type Composable
- type Composer
- type PaddingValues
Constants ¶
This section is empty.
Variables ¶
var BottomAppBarDefaults = bottomAppBarDefaults{}
BottomAppBarDefaults holds the default values for BottomAppBar.
Functions ¶
This section is empty.
Types ¶
type BottomAppBarColors ¶
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 PaddingValues ¶
PaddingValues describes the padding to be applied to the content.