text

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package text contains Material 3 Text components and typography.

Reference: [Typography](https://m3.material.io/styles/typography/overview) Specs: [Typography Specs](https://m3.material.io/styles/typography/specs)

Index

Constants

View Source
const (
	TypestyleDefault Typestyle = token.TypestyleDefault

	TypestyleLabelSmall     = token.TypestyleLabelSmall
	TypestyleLabelMedium    = token.TypestyleLabelMedium
	TypestyleLabelLarge     = token.TypestyleLabelLarge
	TypestyleBodySmall      = token.TypestyleBodySmall
	TypestyleBodyMedium     = token.TypestyleBodyMedium
	TypestyleBodyLarge      = token.TypestyleBodyLarge
	TypestyleTitleSmall     = token.TypestyleTitleSmall
	TypestyleTitleMedium    = token.TypestyleTitleMedium
	TypestyleTitleLarge     = token.TypestyleTitleLarge
	TypestyleHeadlineSmall  = token.TypestyleHeadlineSmall
	TypestyleHeadlineMedium = token.TypestyleHeadlineMedium
	TypestyleHeadlineLarge  = token.TypestyleHeadlineLarge
	TypestyleDisplaySmall   = token.TypestyleDisplaySmall
	TypestyleDisplayMedium  = token.TypestyleDisplayMedium
	TypestyleDisplayLarge   = token.TypestyleDisplayLarge

	TypestyleLabelSmallEmphasized     = token.TypestyleLabelSmallEmphasized
	TypestyleLabelMediumEmphasized    = token.TypestyleLabelMediumEmphasized
	TypestyleLabelLargeEmphasized     = token.TypestyleLabelLargeEmphasized
	TypestyleBodySmallEmphasized      = token.TypestyleBodySmallEmphasized
	TypestyleBodyMediumEmphasized     = token.TypestyleBodyMediumEmphasized
	TypestyleBodyLargeEmphasized      = token.TypestyleBodyLargeEmphasized
	TypestyleTitleSmallEmphasized     = token.TypestyleTitleSmallEmphasized
	TypestyleTitleMediumEmphasized    = token.TypestyleTitleMediumEmphasized
	TypestyleTitleLargeEmphasized     = token.TypestyleTitleLargeEmphasized
	TypestyleHeadlineSmallEmphasized  = token.TypestyleHeadlineSmallEmphasized
	TypestyleHeadlineMediumEmphasized = token.TypestyleHeadlineMediumEmphasized
	TypestyleHeadlineLargeEmphasized  = token.TypestyleHeadlineLargeEmphasized
	TypestyleDisplaySmallEmphasized   = token.TypestyleDisplaySmallEmphasized
	TypestyleDisplayMediumEmphasized  = token.TypestyleDisplayMediumEmphasized
	TypestyleDisplayLargeEmphasized   = token.TypestyleDisplayLargeEmphasized
)

Variables

This section is empty.

Functions

func BodyLarge

func BodyLarge(valye string, options ...text.TextOption) api.Composable

func BodyLargeEmphasized

func BodyLargeEmphasized(value string, options ...text.TextOption) api.Composable

func BodyMedium

func BodyMedium(valye string, options ...text.TextOption) api.Composable

func BodyMediumEmphasized

func BodyMediumEmphasized(value string, options ...text.TextOption) api.Composable

func BodySmall

func BodySmall(valye string, options ...text.TextOption) api.Composable

func BodySmallEmphasized

func BodySmallEmphasized(value string, options ...text.TextOption) api.Composable

func DisplayLarge

func DisplayLarge(valye string, options ...text.TextOption) api.Composable

func DisplayLargeEmphasized

func DisplayLargeEmphasized(value string, options ...text.TextOption) api.Composable

func DisplayMedium

func DisplayMedium(valye string, options ...text.TextOption) api.Composable

func DisplayMediumEmphasized

func DisplayMediumEmphasized(value string, options ...text.TextOption) api.Composable

func DisplaySmall

func DisplaySmall(valye string, options ...text.TextOption) api.Composable

func DisplaySmallEmphasized

func DisplaySmallEmphasized(value string, options ...text.TextOption) api.Composable

func HeadlineLarge

func HeadlineLarge(valye string, options ...text.TextOption) api.Composable

func HeadlineLargeEmphasized

func HeadlineLargeEmphasized(value string, options ...text.TextOption) api.Composable

func HeadlineMedium

func HeadlineMedium(valye string, options ...text.TextOption) api.Composable

func HeadlineMediumEmphasized

func HeadlineMediumEmphasized(value string, options ...text.TextOption) api.Composable

func HeadlineSmall

func HeadlineSmall(valye string, options ...text.TextOption) api.Composable

func HeadlineSmallEmphasized

func HeadlineSmallEmphasized(value string, options ...text.TextOption) api.Composable

func LabelLarge

func LabelLarge(valye string, options ...text.TextOption) api.Composable

func LabelLargeEmphasized

func LabelLargeEmphasized(value string, options ...text.TextOption) api.Composable

func LabelMedium

func LabelMedium(valye string, options ...text.TextOption) api.Composable

func LabelMediumEmphasized

func LabelMediumEmphasized(value string, options ...text.TextOption) api.Composable

func LabelSmall

func LabelSmall(valye string, options ...text.TextOption) api.Composable

func LabelSmallEmphasized

func LabelSmallEmphasized(value string, options ...text.TextOption) api.Composable

func TextWithStyle

func TextWithStyle(value string, tokenStyle Typestyle, options ...text.TextOption) api.Composable

TextWithStyle displays text with the given style from the Material Theme. It retrieves the theme from the layout context at runtime.

func TitleLarge

func TitleLarge(valye string, options ...text.TextOption) api.Composable

func TitleLargeEmphasized

func TitleLargeEmphasized(value string, options ...text.TextOption) api.Composable

func TitleMedium

func TitleMedium(valye string, options ...text.TextOption) api.Composable

func TitleMediumEmphasized

func TitleMediumEmphasized(value string, options ...text.TextOption) api.Composable

func TitleSmall

func TitleSmall(valye string, options ...text.TextOption) api.Composable

func TitleSmallEmphasized

func TitleSmallEmphasized(value string, options ...text.TextOption) api.Composable

Types

type Typestyle

type Typestyle = token.Typestyle

Typestyle aliases token.Typestyle to avoid direct dependency on gio-mw for consumers.

Jump to

Keyboard shortcuts

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