span

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(child application.BaseWidget, options ...Option) application.BaseWidget

Types

type Option

type Option options.OptionWrapper

func AlignItems

func AlignItems(alignItems theme.AxisAlignmentType) Option

func Alt

func Alt(alt string) Option

func BackgroundColor

func BackgroundColor(color string) Option

func BorderRadius

func BorderRadius(borderRadius int) Option

func Class

func Class(class string) Option

func ColumnCount

func ColumnCount(opts ...breakpoint.BreakpointOptions[int]) Option

func ColumnGap

func ColumnGap(columnGap int) Option

func D

func D(data string) Option

func Display

func Display(display theme.DisplayType) Option

func Fill

func Fill(fill string) Option

func Flex

func Flex(flex int) Option

func FlexDirection

func FlexDirection(flexDirection theme.FlexDirectionType) Option

func FlexWrap

func FlexWrap(flexWrap theme.FlexWrapType) Option

func FontColor

func FontColor(color string) Option

func FontFamily

func FontFamily(fontFamily string) Option

func FontSize

func FontSize(fontSize int) Option

func FontWeight

func FontWeight(fontWeight string) Option

func Height

func Height(opts ...breakpoint.BreakpointOptions[int]) Option

func Href

func Href(href string) Option

func ID

func ID(id string) Option

func JustifyContent

func JustifyContent(justifyContent theme.AxisAlignmentType) Option

func LineHeight

func LineHeight(lineHeight float64) Option

func MaxWidth

func MaxWidth(opts ...breakpoint.BreakpointOptions[int]) Option

func NewTab

func NewTab(newTab bool) Option

func OnClick

func OnClick(handler options.OnClickHandler) Option

func Opacity added in v0.0.4

func Opacity(opacity float64) Option

func RowGap

func RowGap(rowGap int) Option

func SetText

func SetText(text string) Option

func TextAlign

func TextAlign(textAlign theme.TextAlignType) Option

func TextStyle added in v0.0.4

func TextStyle(textStyle theme_style.TextStyle) Option

func Tooltip

func Tooltip(tooltip string) Option

func UserSelect

func UserSelect(userSelect theme.UserSelectType) Option

func Visible

func Visible(opts ...breakpoint.BreakpointOptions[bool]) Option

func Width

func Width(opts ...breakpoint.BreakpointOptions[int]) Option

func WidthP

func WidthP(opts ...breakpoint.BreakpointOptions[float64]) Option

Jump to

Keyboard shortcuts

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