Documentation
¶
Index ¶
- func Banner(bannerRef react.ValueRef[BannerHandle], ...) *react.Element
- func CodeBox(codeBoxRef react.ValueRef[CodeBoxHandle], ...) *react.Element
- func DropDown(id, className string, items []any, selected any, onSelect react.Func) *react.Element
- func LineNumbers(lineNumsRef react.Ref, lineCount int, errorLines []int) *react.Element
- func NoopOutput() common.Output
- func OnceValue[T any](f func() T) func() T
- func OutputBox(outputRef react.ValueRef[common.Output], onErrorLine react.Func) *react.Element
- func Playground() *react.Element
- func ToggleBox(id, title, label string, checked bool, setChecked react.Func) *react.Element
- type BannerHandle
- type CodeBoxHandle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LineNumbers ¶
func NoopOutput ¶
func OnceValue ¶
func OnceValue[T any](f func() T) func() T
TODO(grantnelson-wf): Remove when we've reached go1.21
func Playground ¶
Types ¶
type BannerHandle ¶
func NoopBannerHandle ¶
func NoopBannerHandle() BannerHandle
type CodeBoxHandle ¶
type CodeBoxHandle interface {
common.CodeBox
FileName() string
SetFileName(fileName string)
SetErrorLines(lines []int)
}
func NoopCodeBoxHandle ¶
func NoopCodeBoxHandle() CodeBoxHandle
Click to show internal directories.
Click to hide internal directories.