Documentation
¶
Index ¶
- Variables
- type BreakPoint
- type BreakpointOptions
- func All[T any](value T) BreakpointOptions[T]
- func LG[T any](value T) BreakpointOptions[T]
- func MD[T any](value T) BreakpointOptions[T]
- func SM[T any](value T) BreakpointOptions[T]
- func XL[T any](value T) BreakpointOptions[T]
- func XS[T any](value T) BreakpointOptions[T]
- func XXL[T any](value T) BreakpointOptions[T]
- type BreakpointValue
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BreakPoints = []BreakPoint{xs, sm, md, lg, xl, xxl}
)
Functions ¶
This section is empty.
Types ¶
type BreakPoint ¶
type BreakPoint int
func GetCurrent ¶
func GetCurrent() BreakPoint
func GetFromWidth ¶
func GetFromWidth(width int) BreakPoint
type BreakpointOptions ¶
type BreakpointOptions[T any] func(breakpointValue *BreakpointValue[T])
func All ¶
func All[T any](value T) BreakpointOptions[T]
func LG ¶
func LG[T any](value T) BreakpointOptions[T]
func MD ¶
func MD[T any](value T) BreakpointOptions[T]
func SM ¶
func SM[T any](value T) BreakpointOptions[T]
func XL ¶
func XL[T any](value T) BreakpointOptions[T]
func XS ¶
func XS[T any](value T) BreakpointOptions[T]
func XXL ¶
func XXL[T any](value T) BreakpointOptions[T]
type BreakpointValue ¶
type BreakpointValue[T any] struct { // contains filtered or unexported fields }
func (*BreakpointValue[T]) Get ¶
func (b *BreakpointValue[T]) Get(breakpoint BreakPoint) T
Click to show internal directories.
Click to hide internal directories.