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
- func BodyLarge(valye string, options ...text.TextOption) api.Composable
- func BodyLargeEmphasized(value string, options ...text.TextOption) api.Composable
- func BodyMedium(valye string, options ...text.TextOption) api.Composable
- func BodyMediumEmphasized(value string, options ...text.TextOption) api.Composable
- func BodySmall(valye string, options ...text.TextOption) api.Composable
- func BodySmallEmphasized(value string, options ...text.TextOption) api.Composable
- func DisplayLarge(valye string, options ...text.TextOption) api.Composable
- func DisplayLargeEmphasized(value string, options ...text.TextOption) api.Composable
- func DisplayMedium(valye string, options ...text.TextOption) api.Composable
- func DisplayMediumEmphasized(value string, options ...text.TextOption) api.Composable
- func DisplaySmall(valye string, options ...text.TextOption) api.Composable
- func DisplaySmallEmphasized(value string, options ...text.TextOption) api.Composable
- func HeadlineLarge(valye string, options ...text.TextOption) api.Composable
- func HeadlineLargeEmphasized(value string, options ...text.TextOption) api.Composable
- func HeadlineMedium(valye string, options ...text.TextOption) api.Composable
- func HeadlineMediumEmphasized(value string, options ...text.TextOption) api.Composable
- func HeadlineSmall(valye string, options ...text.TextOption) api.Composable
- func HeadlineSmallEmphasized(value string, options ...text.TextOption) api.Composable
- func LabelLarge(valye string, options ...text.TextOption) api.Composable
- func LabelLargeEmphasized(value string, options ...text.TextOption) api.Composable
- func LabelMedium(valye string, options ...text.TextOption) api.Composable
- func LabelMediumEmphasized(value string, options ...text.TextOption) api.Composable
- func LabelSmall(valye string, options ...text.TextOption) api.Composable
- func LabelSmallEmphasized(value string, options ...text.TextOption) api.Composable
- func TextWithStyle(value string, tokenStyle Typestyle, options ...text.TextOption) api.Composable
- func TitleLarge(valye string, options ...text.TextOption) api.Composable
- func TitleLargeEmphasized(value string, options ...text.TextOption) api.Composable
- func TitleMedium(valye string, options ...text.TextOption) api.Composable
- func TitleMediumEmphasized(value string, options ...text.TextOption) api.Composable
- func TitleSmall(valye string, options ...text.TextOption) api.Composable
- func TitleSmallEmphasized(value string, options ...text.TextOption) api.Composable
- type Typestyle
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 ¶
Click to show internal directories.
Click to hide internal directories.