dark_mode_switcher_component

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DarkModeCookieKey = "X-Dark-Mode"
)

Variables

This section is empty.

Functions

func Dark

func Dark(c hiro.Ctx) bool

Types

type DarkModeSwtitcher

type DarkModeSwtitcher struct {
	hiro.Component
	Menu bool `json:"-"`
	// contains filtered or unexported fields
}

func (*DarkModeSwtitcher) HandleSwitch

func (c *DarkModeSwtitcher) HandleSwitch() error

func (*DarkModeSwtitcher) Mount

func (c *DarkModeSwtitcher) Mount()

func (*DarkModeSwtitcher) Name

func (c *DarkModeSwtitcher) Name() string

func (*DarkModeSwtitcher) Node

func (c *DarkModeSwtitcher) Node() Node

Jump to

Keyboard shortcuts

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