button

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Demo added in v0.0.7

func Demo() app.UI

Types

type AriaDisabled

type AriaDisabled struct {
	app.Compo
}

func (*AriaDisabled) Render

func (c *AriaDisabled) Render() app.UI

type BlockLevel

type BlockLevel struct {
	app.Compo
}

func (*BlockLevel) Render

func (c *BlockLevel) Render() app.UI

type Button added in v0.0.7

type Button struct {
	ID                   string
	AriaLabel            string
	Children             []app.UI
	ClassName            []string
	Component            string
	Icon                 app.HTMLI
	IconPosition         string
	InoperableEvents     []string
	Active               bool
	AriaDisabled         bool
	Block                bool
	Danger               bool
	Disabled             bool
	Inline               bool
	Large                bool
	Loading              bool
	Small                bool
	SpinnerAriaLabel     string
	SpinnerAriaLabeledBy string
	SpinnerAriaValueText string
	TabIndex             *int
	Type                 Type
	Variant              Variant
	OnClick              app.EventHandler
	Href                 string
	Target               string
}

func (*Button) UI added in v0.0.7

func (b *Button) UI() app.UI

func (*Button) UpdateState added in v0.0.7

func (b *Button) UpdateState(ctx app.Context)

type CallToAction

type CallToAction struct {
	app.Compo
}

func (*CallToAction) Render

func (c *CallToAction) Render() app.UI

type Disabled

type Disabled struct {
	app.Compo
}

func (*Disabled) Render

func (c *Disabled) Render() app.UI

type InlineLinkAsSpan

type InlineLinkAsSpan struct {
	app.Compo
}

func (*InlineLinkAsSpan) Render

func (c *InlineLinkAsSpan) Render() app.UI

type LinksAsButtons

type LinksAsButtons struct {
	app.Compo
}

func (*LinksAsButtons) Render

func (c *LinksAsButtons) Render() app.UI

type Progress

type Progress struct {
	app.Compo
}

func (*Progress) Render

func (c *Progress) Render() app.UI

type Type added in v0.0.7

type Type string
const (
	TypeButton Type = "button"
	TypeSubmit Type = "submit"
	TypeReset  Type = "reset"
)

func (Type) String added in v0.0.7

func (t Type) String() string

type Types

type Types struct {
	app.Compo
}

func (*Types) Render

func (c *Types) Render() app.UI

type Variant added in v0.0.7

type Variant string
const (
	Primary   Variant = "primary"
	Secondary Variant = "secondary"
	Tertiary  Variant = "tertiary"
	Danger    Variant = "danger"
	Warning   Variant = "warning"
	Link      Variant = "link"
	PLain     Variant = "plain"
	Control   Variant = "control"
)

func Variants added in v0.0.7

func Variants() []Variant

type Variations

type Variations struct {
	app.Compo
}

func (*Variations) Render

func (c *Variations) Render() app.UI

Jump to

Keyboard shortcuts

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