Documentation
¶
Overview ¶
Package bottomsheet contains Material 3 Bottom Sheet components.
Reference: [Bottom Sheets](https://m3.material.io/components/bottom-sheets/overview) Specs: [Bottom Sheets Specs](https://m3.material.io/components/bottom-sheets/specs)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Composable ¶
type Composable = api.Composable
func ModalBottomSheet ¶
func ModalBottomSheet( sheetContent Composable, content Composable, options ...ModalBottomSheetOption, ) Composable
type ModalBottomSheetOption ¶
type ModalBottomSheetOption func(*ModalBottomSheetOptions)
func WithContainerColor ¶
func WithContainerColor(col graphics.Color) ModalBottomSheetOption
func WithIsOpen ¶
func WithIsOpen(isOpen bool) ModalBottomSheetOption
func WithOnDismissRequest ¶
func WithOnDismissRequest(onDismiss func()) ModalBottomSheetOption
func WithScrimColor ¶
func WithScrimColor(col graphics.Color) ModalBottomSheetOption
type ModalBottomSheetOptions ¶
type ModalBottomSheetOptions struct {
IsOpen bool // Controlled by parent usually, or we can use visible state?
OnDismissRequest func()
ContainerColor graphics.Color // Will use default if not set
ScrimColor graphics.Color // Will use default if not set
Shape token.CornerShape // Will use default if not set
DragHandle Composable // Optional custom drag handle
}
func DefaultModalBottomSheetOptions ¶
func DefaultModalBottomSheetOptions() ModalBottomSheetOptions
Click to show internal directories.
Click to hide internal directories.