Documentation ¶
Overview ¶
Heavily borrowed from: https://github.com/charmbracelet/bubbletea/tree/master/examples/credit-card-form
Index ¶
- func FormRoute(inputs ...*Input) router.RouteInitializer
- func MenuRenderer(props MenuProps, w, h int) string
- func PreviewRoute(names *batch.Names) router.RouteInitializer
- func Quit() tea.Msg
- func TermSize() (int, int)
- func ValidateBool(v string) error
- func ValidateInt(a string) error
- type App
- type Form
- type FormProps
- type Input
- type InputProps
- type MenuEntry
- type MenuProps
- type Preview
- type PreviewProps
- type QuitMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormRoute ¶
func FormRoute(inputs ...*Input) router.RouteInitializer
func MenuRenderer ¶
func PreviewRoute ¶
func PreviewRoute(names *batch.Names) router.RouteInitializer
func ValidateBool ¶
func ValidateInt ¶
Types ¶
type App ¶
type App struct { reactea.BasicComponent reactea.BasicPropfulComponent[reactea.NoProps] // contains filtered or unexported fields }
type Form ¶
type Form struct { reactea.BasicComponent reactea.BasicPropfulComponent[FormProps] // contains filtered or unexported fields }
type Input ¶
type Input struct { reactea.BasicComponent reactea.BasicPropfulComponent[InputProps] textinput.Model }
func FindReplaceForm ¶
func FindReplaceForm() []*Input
func NewPaddingForm ¶
func NewPaddingForm() []*Input
type InputProps ¶
type InputProps struct {
SetValue func(any)
}
type Preview ¶
type Preview struct { reactea.BasicComponent reactea.BasicPropfulComponent[PreviewProps] // contains filtered or unexported fields }
func NewPreview ¶
func NewPreview() *Preview
type PreviewProps ¶
Click to show internal directories.
Click to hide internal directories.