breakpoint

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: 1 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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