props

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignContent added in v0.1.1

type AlignContent string
const (
	AlignContentNormal        AlignContent = "normal"
	AlignContentStart         AlignContent = "start"
	AlignContentCenter        AlignContent = "center"
	AlignContentEnd           AlignContent = "end"
	AlignContentFlexStart     AlignContent = "flex-start"
	AlignContentFlexEnd       AlignContent = "flex-end"
	AlignContentBaseline      AlignContent = "baseline"
	AlignContentFirstBaseline AlignContent = "first baseline"
	AlignContentLastBaseline  AlignContent = "last baseline"
	AlignContentSpaceBetween  AlignContent = "space-between"
	AlignContentSpaceAround   AlignContent = "space-around"
	AlignContentSpaceEvenly   AlignContent = "space-evenly"
	AlignContentStretch       AlignContent = "stretch"
)

func (AlignContent) String added in v0.1.1

func (a AlignContent) String() string

type AlignItems

type AlignItems string
const (
	AlignItemsNormal    AlignItems = "normal"
	AlignItemsStretch   AlignItems = "stretch"
	AlignItemsStart     AlignItems = "start"
	AlignItemsCenter    AlignItems = "center"
	AlignItemsEnd       AlignItems = "end"
	AlignItemsFlexStart AlignItems = "flex-start"
	AlignItemsFlexEnd   AlignItems = "flex-end"
	AlignItemsSelfStart AlignItems = "self-start"
	AlignItemsSelfEnd   AlignItems = "self-end"
	AlignItemsBaseline  AlignItems = "baseline"
)

func (AlignItems) String

func (a AlignItems) String() string

type AlignSelf added in v0.1.1

type AlignSelf string
const (
	AlignSelfAuto      AlignSelf = "auto"
	AlignSelfNormal    AlignSelf = "normal"
	AlignSelfStretch   AlignSelf = "stretch"
	AlignSelfCenter    AlignSelf = "center"
	AlignSelfStart     AlignSelf = "start"
	AlignSelfEnd       AlignSelf = "end"
	AlignSelfFlexStart AlignSelf = "flex-start"
	AlignSelfFlexEnd   AlignSelf = "flex-end"
	AlignSelfSelfStart AlignSelf = "self-start"
	AlignSelfSelfEnd   AlignSelf = "self-end"
	AlignSelfBaseline  AlignSelf = "baseline"
)

func (AlignSelf) String added in v0.1.1

func (a AlignSelf) String() string

type Appearance

type Appearance string
const (
	AppearanceNone           Appearance = "none"
	AppearanceAuto           Appearance = "auto"
	AppearanceMenuListButton Appearance = "menulist-button"
	AppearanceTextField      Appearance = "textfield"
	AppearanceInherit        Appearance = "inherit"
	AppearanceInitial        Appearance = "initial"
	AppearanceRevert         Appearance = "revert"
	AppearanceRevertLater    Appearance = "revert-later"
	AppearanceUnset          Appearance = "unset"
	AppearanceButton         Appearance = "button"
	AppearanceCheckbox       Appearance = "checkbox"
)

func (Appearance) String

func (a Appearance) String() string

type BackgroundImage

type BackgroundImage string

func BackgroundImageLinearGradient

func BackgroundImageLinearGradient(segments ...string) BackgroundImage

func BackgroundImageURL

func BackgroundImageURL(url string) BackgroundImage

func BackgroundImages

func BackgroundImages(images ...BackgroundImage) BackgroundImage

func (BackgroundImage) String

func (b BackgroundImage) String() string

type BackgroundPosition

type BackgroundPosition string
const (
	BackgroundPositionTop         BackgroundPosition = "top"
	BackgroundPositionBottom      BackgroundPosition = "bottom"
	BackgroundPositionLeft        BackgroundPosition = "left"
	BackgroundPositionRight       BackgroundPosition = "right"
	BackgroundPositionCenter      BackgroundPosition = "center"
	BackgroundPositionTopLeft     BackgroundPosition = "top left"
	BackgroundPositionTopRight    BackgroundPosition = "top right"
	BackgroundPositionBottomLeft  BackgroundPosition = "bottom left"
	BackgroundPositionBottomRight BackgroundPosition = "bottom right"
)

func BackgroundPositionEdges

func BackgroundPositionEdges(edges ...BackgroundPositionEdge) BackgroundPosition

func BackgroundPositionXY

func BackgroundPositionXY(x, y Unit) BackgroundPosition

func BackgroundPositions

func BackgroundPositions(positions ...BackgroundPosition) BackgroundPosition

func (BackgroundPosition) String

func (b BackgroundPosition) String() string

type BackgroundPositionEdge

type BackgroundPositionEdge struct {
	Position BackgroundPosition
	Unit     Unit
}

func (BackgroundPositionEdge) String

func (b BackgroundPositionEdge) String() string

type BackgroundRepeat

type BackgroundRepeat string
const (
	BackgroundRepeatRepeatX  BackgroundRepeat = "repeat-x"
	BackgroundRepeatRepeatY  BackgroundRepeat = "repeat-y"
	BackgroundRepeatRepeat   BackgroundRepeat = "repeat"
	BackgroundRepeatSpace    BackgroundRepeat = "space"
	BackgroundRepeatRound    BackgroundRepeat = "round"
	BackgroundRepeatNoRepeat BackgroundRepeat = "no-repeat"
)

func BackgroundRepeats

func BackgroundRepeats(repeats ...BackgroundRepeat) BackgroundRepeat

func (BackgroundRepeat) String

func (b BackgroundRepeat) String() string

type BackgroundSize

type BackgroundSize string

func BackgroundSizeContain

func BackgroundSizeContain() BackgroundSize

func BackgroundSizeCover

func BackgroundSizeCover() BackgroundSize

func BackgroundSizeDimension

func BackgroundSizeDimension(width, height Unit) BackgroundSize

func BackgroundSizeWidth

func BackgroundSizeWidth(unit Unit) BackgroundSize

func BackgroundSizes

func BackgroundSizes(sizes ...BackgroundSize) BackgroundSize

func (BackgroundSize) String

func (b BackgroundSize) String() string

type Border

type Border struct {
	Width Unit
	Style BorderStyle
	Color Color
}

func (Border) String

func (b Border) String() string

type BorderCollapse added in v0.1.1

type BorderCollapse string
const (
	BorderCollapseCollapse BorderCollapse = "collapse"
	BorderCollapseSeparate BorderCollapse = "separate"
)

func (BorderCollapse) String added in v0.1.1

func (b BorderCollapse) String() string

type BorderStyle

type BorderStyle string
const (
	BorderStyleSolid  BorderStyle = "solid"
	BorderStyleDashed BorderStyle = "dashed"
	BorderStyleDotted BorderStyle = "dotted"
	BorderStyleDouble BorderStyle = "double"
	BorderStyleHidden BorderStyle = "hidden"
	BorderStyleNone   BorderStyle = "none"
)

func (BorderStyle) String

func (b BorderStyle) String() string

type BoxSizing added in v0.0.6

type BoxSizing string
const (
	BoxSizingBorderBox  BoxSizing = "border-box"
	BoxSizingContentBox BoxSizing = "content-box"
)

func (BoxSizing) String added in v0.0.6

func (b BoxSizing) String() string

type CaptionSide

type CaptionSide string
const (
	CaptionSideTop    CaptionSide = "top"
	CaptionSideBottom CaptionSide = "bottom"
)

func (CaptionSide) String

func (c CaptionSide) String() string

type Color

type Color struct {
	Keyword string
	Color   color.Color
}

func ColorCurrentColor

func ColorCurrentColor() Color

func ColorInherit

func ColorInherit() Color

func ColorRGBA

func ColorRGBA(r, g, b, a uint8) Color

ColorRGBA returns a new color with the given red, green, blue, and alpha values.

func ColorTransparent

func ColorTransparent() Color

func (Color) Alpha

func (c Color) Alpha(a uint8) Color

Alpha returns a new color with the alpha channel set to the given value.

func (Color) Mix added in v0.1.0

func (c Color) Mix(with Color, percentage float64) Color

Mix returns a new color that is a mixture of the two colors. The percentage parameter is a float between 0 and 1 and determines how much of the second color to mix with the first color.

func (Color) String

func (c Color) String() string

String returns a string representation of the color. If the color is a keyword, the keyword is returned. Otherwise, the color is returned as an rgba string.

type Cursor added in v0.0.4

type Cursor string
const (
	CursorAuto       Cursor = "auto"
	CursorDefault    Cursor = "default"
	CursorPointer    Cursor = "pointer"
	CursorWait       Cursor = "wait"
	CursorText       Cursor = "text"
	CursorMove       Cursor = "move"
	CursorHelp       Cursor = "help"
	CursorNotAllowed Cursor = "not-allowed"
	CursorNone       Cursor = "none"
)

func (Cursor) String added in v0.0.4

func (c Cursor) String() string

type Display

type Display string
const (
	DisplayBlock            Display = "block"
	DisplayInlineBlock      Display = "inline-block"
	DisplayInline           Display = "inline"
	DisplayFlex             Display = "flex"
	DisplayInlineFlex       Display = "inline-flex"
	DisplayTable            Display = "table"
	DisplayInlineTable      Display = "inline-table"
	DisplayTableCaption     Display = "table-caption"
	DisplayTableCell        Display = "table-cell"
	DisplayTableColumn      Display = "table-column"
	DisplayTableColumnGroup Display = "table-column-group"
	DisplayTableFooterGroup Display = "table-footer-group"
	DisplayTableHeaderGroup Display = "table-header-group"
	DisplayTableRowGroup    Display = "table-row-group"
	DisplayTableRow         Display = "table-row"
	DisplayFlowRoot         Display = "flow-root"
	DisplayGrid             Display = "grid"
	DisplayInlineGrid       Display = "inline-grid"
	DisplayContents         Display = "contents"
	DisplayListItem         Display = "list-item"
	DisplayNone             Display = "none"
)

func (Display) String

func (d Display) String() string

type FlexDirection

type FlexDirection string
const (
	FlexDirectionColumn        FlexDirection = "column"
	FlexDirectionColumnReverse FlexDirection = "column-reverse"
	FlexDirectionRow           FlexDirection = "row"
	FlexDirectionRowReverse    FlexDirection = "row-reverse"
)

func (FlexDirection) String

func (f FlexDirection) String() string

type FlexWrap

type FlexWrap string
const (
	FlexWrapNoWrap      FlexWrap = "nowrap"
	FlexWrapWrap        FlexWrap = "wrap"
	FlexWrapWrapReverse FlexWrap = "wrap-reverse"
)

func (FlexWrap) String

func (f FlexWrap) String() string

type Float

type Float string
const (
	FloatNone        Float = "none"
	FloatLeft        Float = "left"
	FloatRight       Float = "right"
	FloatInlineStart Float = "inline-start"
	FloatInlineEnd   Float = "inline-end"
)

func (Float) String

func (f Float) String() string

type FontFamily added in v0.0.7

type FontFamily string
const (
	FontFamilySans  FontFamily = "ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\""
	FontFamilySerif FontFamily = "ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif"
	FontFamilyMono  FontFamily = "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace"
)

func (FontFamily) String added in v0.0.7

func (f FontFamily) String() string

type FontStyle

type FontStyle string
const (
	FontStyleNormal FontStyle = "normal"
	FontStyleItalic FontStyle = "italic"
)

func (FontStyle) String

func (f FontStyle) String() string

type FontWeight

type FontWeight string
const (
	FontWeightThin       FontWeight = "100"
	FontWeightExtraLight FontWeight = "200"
	FontWeightLight      FontWeight = "300"
	FontWeightNormal     FontWeight = "400"
	FontWeightMedium     FontWeight = "500"
	FontWeightSemiBold   FontWeight = "600"
	FontWeightBold       FontWeight = "700"
	FontWeightExtraBold  FontWeight = "800"
	FontWeightBlack      FontWeight = "900"
)

func (FontWeight) String

func (f FontWeight) String() string

type JustifyContent

type JustifyContent string
const (
	JustifyContentNormal       JustifyContent = "normal"
	JustifyContentCenter       JustifyContent = "center"
	JustifyContentStart        JustifyContent = "start"
	JustifyContentEnd          JustifyContent = "end"
	JustifyContentFlexStart    JustifyContent = "flex-start"
	JustifyContentFlexEnd      JustifyContent = "flex-end"
	JustifyContentLeft         JustifyContent = "left"
	JustifyContentRight        JustifyContent = "right"
	JustifyContentSpaceBetween JustifyContent = "space-between"
	JustifyContentSpaceAround  JustifyContent = "space-around"
	JustifyContentSpaceEvenly  JustifyContent = "space-evenly"
	JustifyContentStretch      JustifyContent = "stretch"
)

func (JustifyContent) String

func (j JustifyContent) String() string

type JustifyItems

type JustifyItems string
const (
	JustifyItemsNormal    JustifyItems = "normal"
	JustifyItemsStretch   JustifyItems = "stretch"
	JustifyItemsCenter    JustifyItems = "center"
	JustifyItemsStart     JustifyItems = "start"
	JustifyItemsEnd       JustifyItems = "end"
	JustifyItemsFlexStart JustifyItems = "flex-start"
	JustifyItemsFlexEnd   JustifyItems = "flex-end"
	JustifyItemsSelfStart JustifyItems = "self-start"
	JustifyItemsSelfEnd   JustifyItems = "self-end"
	JustifyItemsLeft      JustifyItems = "left"
	JustifyItemsRight     JustifyItems = "right"
	JustifyItemsBaseline  JustifyItems = "baseline"
)

func (JustifyItems) String

func (j JustifyItems) String() string

type JustifySelf

type JustifySelf string
const (
	JustifySelfAuto      JustifySelf = "auto"
	JustifySelfNormal    JustifySelf = "normal"
	JustifySelfStretch   JustifySelf = "stretch"
	JustifySelfCenter    JustifySelf = "center"
	JustifySelfStart     JustifySelf = "start"
	JustifySelfEnd       JustifySelf = "end"
	JustifySelfFlexStart JustifySelf = "flex-start"
	JustifySelfFlexEnd   JustifySelf = "flex-end"
	JustifySelfSelfStart JustifySelf = "self-start"
	JustifySelfSelfEnd   JustifySelf = "self-end"
	JustifySelfLeft      JustifySelf = "left"
	JustifySelfRight     JustifySelf = "right"
	JustifySelfBaseline  JustifySelf = "baseline"
)

func (JustifySelf) String

func (j JustifySelf) String() string

type ListStylePosition added in v0.0.6

type ListStylePosition string
const (
	ListStylePositionInside  ListStylePosition = "inside"
	ListStylePositionOutside ListStylePosition = "outside"
)

func (ListStylePosition) String added in v0.0.6

func (l ListStylePosition) String() string

type ListStyleType added in v0.0.6

type ListStyleType string
const (
	ListStyleTypeNone    ListStyleType = "none"
	ListStyleTypeDisc    ListStyleType = "disc"
	ListStyleTypeDecimal ListStyleType = "decimal"
)

func (ListStyleType) String added in v0.0.6

func (l ListStyleType) String() string

type Overflow

type Overflow string
const (
	OverflowVisible Overflow = "visible"
	OverflowHidden  Overflow = "hidden"
	OverflowScroll  Overflow = "scroll"
	OverflowAuto    Overflow = "auto"
	OverflowClip    Overflow = "clip"
)

func (Overflow) String

func (o Overflow) String() string

type Position

type Position string
const (
	PositionStatic   Position = "static"
	PositionRelative Position = "relative"
	PositionAbsolute Position = "absolute"
	PositionFixed    Position = "fixed"
	PositionSticky   Position = "sticky"
)

func (Position) String

func (p Position) String() string

type PrintColorAdjust

type PrintColorAdjust string
const (
	PrintColorAdjustEconomy PrintColorAdjust = "economy"
	PrintColorAdjustExact   PrintColorAdjust = "exact"
)

func (PrintColorAdjust) String

func (c PrintColorAdjust) String() string

type TextAlign

type TextAlign string
const (
	TextAlignLeft    TextAlign = "left"
	TextAlignRight   TextAlign = "right"
	TextAlignCenter  TextAlign = "center"
	TextAlignJustify TextAlign = "justify"
	TextAlignStart   TextAlign = "start"
	TextAlignEnd     TextAlign = "end"
)

func (TextAlign) String

func (t TextAlign) String() string

type TextDecorationLine added in v0.0.7

type TextDecorationLine string
const (
	TextDecorationLineNone        TextDecorationLine = "none"
	TextDecorationLineUnderline   TextDecorationLine = "underline"
	TextDecorationLineOverline    TextDecorationLine = "overline"
	TextDecorationLineLineThrough TextDecorationLine = "line-through"
)

func (TextDecorationLine) String added in v0.0.7

func (t TextDecorationLine) String() string

type TextDecorationStyle added in v0.0.7

type TextDecorationStyle string
const (
	TextDecorationStyleSolid  TextDecorationStyle = "solid"
	TextDecorationStyleDouble TextDecorationStyle = "double"
	TextDecorationStyleDotted TextDecorationStyle = "dotted"
	TextDecorationStyleDashed TextDecorationStyle = "dashed"
	TextDecorationStyleWavy   TextDecorationStyle = "wavy"
)

func (TextDecorationStyle) String added in v0.0.7

func (t TextDecorationStyle) String() string

type TextOverflow added in v0.0.3

type TextOverflow string
const (
	TextOverflowClip     TextOverflow = "clip"
	TextOverflowEllipsis TextOverflow = "ellipsis"
)

func (TextOverflow) String added in v0.0.3

func (t TextOverflow) String() string

type TextTransform added in v0.0.7

type TextTransform string
const (
	TextTransformNone       TextTransform = "none"
	TextTransformCapitalize TextTransform = "capitalize"
	TextTransformUppercase  TextTransform = "uppercase"
	TextTransformLowercase  TextTransform = "lowercase"
)

func (TextTransform) String added in v0.0.7

func (t TextTransform) String() string

type TextWrap added in v0.0.7

type TextWrap string
const (
	TextWrapWrap    TextWrap = "wrap"
	TextWrapNoWrap  TextWrap = "nowrap"
	TextWrapBalance TextWrap = "balance"
)

func (TextWrap) String added in v0.0.7

func (t TextWrap) String() string

type Unit

type Unit struct {
	Size interface{}
	Type UnitType
}

func UnitAuto

func UnitAuto() Unit

func UnitEm

func UnitEm(size float64) Unit

func UnitInherit

func UnitInherit() Unit

func UnitInitial

func UnitInitial() Unit

func UnitPercent

func UnitPercent(size float64) Unit

func UnitPx

func UnitPx(size int) Unit

func UnitRaw

func UnitRaw(size interface{}) Unit

func UnitRem

func UnitRem(size float64) Unit

func UnitVh added in v0.0.8

func UnitVh(size int) Unit

func UnitVw added in v0.0.8

func UnitVw(size int) Unit

func (Unit) String

func (u Unit) String() string

type UnitType

type UnitType int
const (
	UnitTypeRaw UnitType
	UnitTypePx
	UnitTypePercent
	UnitTypeRem
	UnitTypeEm
	UnitTypeVh
	UnitTypeVw
	UnitTypeAuto
	UnitTypeInherit
	UnitTypeInitial
)

type VerticalAlign added in v0.0.6

type VerticalAlign string
const (
	VerticalAlignBaseline   VerticalAlign = "baseline"
	VerticalAlignSub        VerticalAlign = "sub"
	VerticalAlignSuper      VerticalAlign = "super"
	VerticalAlignTextTop    VerticalAlign = "text-top"
	VerticalAlignTextBottom VerticalAlign = "text-bottom"
	VerticalAlignMiddle     VerticalAlign = "middle"
	VerticalAlignTop        VerticalAlign = "top"
	VerticalAlignBottom     VerticalAlign = "bottom"
)

func (VerticalAlign) String added in v0.0.6

func (v VerticalAlign) String() string

type Visibility added in v0.0.6

type Visibility string
const (
	VisibilityVisible  Visibility = "visible"
	VisibilityHidden   Visibility = "hidden"
	VisibilityCollapse Visibility = "collapse"
)

func (Visibility) String added in v0.0.6

func (v Visibility) String() string

type WhiteSpace added in v0.0.3

type WhiteSpace string
const (
	WhiteSpaceNormal  WhiteSpace = "normal"
	WhiteSpaceNowrap  WhiteSpace = "nowrap"
	WhiteSpacePre     WhiteSpace = "pre"
	WhiteSpacePreLine WhiteSpace = "pre-line"
	WhiteSpacePreWrap WhiteSpace = "pre-wrap"
)

func (WhiteSpace) String added in v0.0.3

func (w WhiteSpace) String() string

Jump to

Keyboard shortcuts

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