card

package
v0.1.94 Latest Latest
Warning

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

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

Documentation

Overview

Package card contains Material 3 Card components.

Reference: [Cards](https://m3.material.io/components/cards/overview) Specs: [Cards Specs](https://m3.material.io/components/cards/specs)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardChild

type CardChild struct {
	// contains filtered or unexported fields
}

func Content

func Content(composable Composable) *CardChild

func ContentCover

func ContentCover(composable Composable) *CardChild

type CardContentContainer

type CardContentContainer struct {
	// contains filtered or unexported fields
}

func CardContents

func CardContents(children ...*CardChild) CardContentContainer

type CardContentType

type CardContentType int
const (
	CardContent CardContentType = iota
	CardContentCover
)

type CardOption

type CardOption func(o *CardOptions)

func WithModifier

func WithModifier(m ui.Modifier) CardOption

type CardOptions

type CardOptions struct {
	Modifier ui.Modifier
}

func DefaultCardOptions

func DefaultCardOptions() CardOptions

type Composable

type Composable = api.Composable

func Elevated

func Elevated(contents CardContentContainer, options ...CardOption) Composable

func Filled

func Filled(contents CardContentContainer, options ...CardOption) Composable

func Outlined

func Outlined(contents CardContentContainer, options ...CardOption) Composable

type Composer

type Composer = api.Composer

type GioImage

type GioImage = widget.Image

type MutableValue

type MutableValue = state.MutableValue

Jump to

Keyboard shortcuts

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