ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

templ: version: v0.3.898

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Change

func Change(theme Theme, copy PasswordUICopy, state password.FormState) templ.Component

func Forgot

func Forgot(theme Theme, copy PasswordUICopy, state password.FormState) templ.Component

func Login

func Login(theme Theme, copy PasswordUICopy, state password.FormState) templ.Component

func New

func New(theme Theme, copy PasswordUICopy, l web.Locations) (password.PasswordUi, []byte)

func Register

func Register(theme Theme, copy PasswordUICopy, state password.FormState) templ.Component

func Select

func Select(theme Theme, providers map[string]string, props *SelectProps) templ.Component

func TOTPSetup

func TOTPSetup(theme Theme, copy PasswordUICopy, state password.FormState, qr []byte, skipRedirectUrl string, totpSecret string) templ.Component

Types

type ColorScheme

type ColorScheme struct {
	Light string
	Dark  string
}

type Font

type Font struct {
	Family string
	Scale  string
}

type PasswordUICopy

type PasswordUICopy struct {
	RegisterTitle       string
	RegisterDescription string
	LoginTitle          string
	LoginDescription    string
	Register            string
	RegisterPrompt      string
	LoginPrompt         string
	Login               string
	ForgotPrompt        string
	CodeResend          string
	CodeReturn          string
	InputEmail          string
	InputPassword       string
	InputCode           string
	InputRepeat         string
	ButtonContinue      string
	TotpTest            string
	TotpSkip            string
	EmailPlaceholder    string
	TotpInfo            string
	TotpPlaceholder     string
	Error               map[error]string
}

func DefaultPasswordUICopy

func DefaultPasswordUICopy() PasswordUICopy

type SelectProps

type SelectProps struct {
	Providers map[string]SelectProviderConfig
}

type SelectProviderConfig

type SelectProviderConfig struct {
	Hide    bool
	Display string
}

type Theme

type Theme struct {
	Title      string
	Favicon    string
	Radius     string      // "none" | "sm" | "md" | "lg" | "full"
	Background ColorScheme // string or ColorScheme
	Primary    ColorScheme // string or ColorScheme
	Font       Font
}

func DefaultPasswordUITheme

func DefaultPasswordUITheme() Theme

Jump to

Keyboard shortcuts

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