props

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignItems

type AlignItems string
const (
	AlignItemsStart    AlignItems = "flex-start"
	AlignItemsEnd      AlignItems = "flex-end"
	AlignItemsCenter   AlignItems = "center"
	AlignItemsBaseline AlignItems = "baseline"
	AlignItemsStretch  AlignItems = "stretch"
)

func (AlignItems) String

func (a AlignItems) 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 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 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
	RGBA    color.RGBA
}

func ColorCurrentColor

func ColorCurrentColor() Color

func ColorInherit

func ColorInherit() Color

func ColorRGBA

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

func ColorTransparent

func ColorTransparent() Color

func (Color) Alpha

func (c Color) Alpha(a uint8) Color

func (Color) String

func (c Color) String() 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 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"
	JustifyContentFlexStart    JustifyContent = "flex-start"
	JustifyContentFlexEnd      JustifyContent = "flex-end"
	JustifyContentCenter       JustifyContent = "center"
	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 (
	JustifyItemsStretch JustifyItems = "stretch"
	JustifyItemsCenter  JustifyItems = "center"
	JustifyItemsStart   JustifyItems = "start"
	JustifyItemsEnd     JustifyItems = "end"
)

func (JustifyItems) String

func (j JustifyItems) String() string

type JustifySelf

type JustifySelf string
const (
	JustifySelfStretch JustifySelf = "stretch"
	JustifySelfCenter  JustifySelf = "center"
	JustifySelfStart   JustifySelf = "start"
	JustifySelfEnd     JustifySelf = "end"
)

func (JustifySelf) String

func (j JustifySelf) 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 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 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 (Unit) String

func (u Unit) String() string

type UnitType

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

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