box

package
v0.1.122 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MatchParentSizeKey = box.MatchParentSizeKey

Functions

This section is empty.

Types

type BoxOption

type BoxOption func(*BoxOptions)

func WithAlignment

func WithAlignment(alignment Direction) BoxOption

func WithModifier

func WithModifier(m ui.Modifier) BoxOption

type BoxOptions

type BoxOptions struct {
	Modifier  ui.Modifier
	Alignment Direction
}

func DefaultBoxOptions

func DefaultBoxOptions() BoxOptions

type Composable

type Composable = api.Composable

func Box

func Box(content Composable, options ...BoxOption) Composable

type Composer

type Composer = api.Composer

type Direction

type Direction = layout.Direction

Direction is the alignment of widgets relative to a containing space.

type LayoutContext

type LayoutContext = layout.Context

type LayoutDimensions

type LayoutDimensions = layout.Dimensions

type Stack

type Stack = layout.Stack

type StackChild

type StackChild = layout.StackChild

Jump to

Keyboard shortcuts

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