terms

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Style = lipgloss.NewStyle().Height(25).Width(80).
		Align(lipgloss.Center, lipgloss.Center).
		BorderStyle(lipgloss.ThickBorder()).
		Margin(0, 3)
)

Functions

This section is empty.

Types

type Model

type Model struct {
	TermsContent string
	UserId       uuid.UUID
	Accepted     bool
	Error        string
}

func InitialModel

func InitialModel(userId uuid.UUID) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

func (Model) ViewWithWidth

func (m Model) ViewWithWidth(termWidth, termHeight int) string

ViewWithWidth renders the view with proper width accounting for border and margins

type TermsAcceptedMsg

type TermsAcceptedMsg struct{}

TermsAcceptedMsg is exported for the parent view to detect acceptance

Jump to

Keyboard shortcuts

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