placeholder

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EXAMPLE_MD string
View Source
var Placeholder stories.InitFunc = func(ctx context.Context) (mux.Screen, error) {
	return screen.AddMargins(ctx, New(ctx)), nil
}

Functions

func New

func New(ctx context.Context) mux.Screen

Types

type Markdown

type Markdown struct {
	// contains filtered or unexported fields
}

Renders some placeholder markdown text. Just used in stories.

func (*Markdown) Init

func (s *Markdown) Init() tea.Cmd

func (*Markdown) Update

func (s *Markdown) Update(msg tea.Msg) (taro.Model, tea.Cmd)

func (*Markdown) View

func (s *Markdown) View(state *tty.State)

Jump to

Keyboard shortcuts

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