bottomsheet

package
v0.1.117 Latest Latest
Warning

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

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

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 Composer

type Composer = api.Composer

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

Jump to

Keyboard shortcuts

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