html

package module
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 4 Imported by: 8

README

Plain: Type-Safe HTML in Go

Why choose Plain? Because building HTML should be as reliable as the rest of your Go code—with compile-time safety, IDE autocomplete, and zero runtime surprises.

Why Plain?

The Problem with Current Solutions

Template engines fail at compile time: Most Go HTML solutions parse templates at runtime, turning typos and structure errors into production bugs instead of build failures.

Existing builders are verbose and fragile: Struct-based HTML builders require tedious field assignments and don't prevent invalid attribute combinations like <input href="/invalid">.

No real type safety: You can pass any attribute to any element, discovering mistakes only when testing in a browser.

The Plain Solution

Plain generates HTML using pure Go functions with compile-time validation. Each HTML element is a typed function that only accepts valid attributes and provides full IDE support.

// This compiles and works
input := Input(
    AType("email"),
    AName("email"),
    ARequired(),
    APlaceholder("Enter email"),
)

// This fails at compile time - Href not valid for Input
input := Input(AHref("/invalid"))  // ❌ Compile error

What is Plain?

Plain is a function-based HTML component library that generates HTML at compile time with zero runtime overhead.

  • Type-safe: Each element only accepts valid attributes
  • Compile-time validation: Catch HTML errors before deployment
  • Zero runtime cost: Pure string building with no reflection
  • Full IDE support: Autocomplete, go-to-definition, refactoring
  • Server-first: Build complete HTML pages, not client-side components
Core Philosophy
  1. HTML is data structures: Represent your UI as composable Go functions
  2. Fail fast: Invalid HTML should fail at compile time, not runtime
  3. Developer experience first: Autocomplete, type checking, and refactoring should just work
  4. Zero magic: Simple functions that build strings—nothing hidden

How to Use Plain

Installation
go get github.com/plainkit/html
Quick Start
package main

import (
    "fmt"
    . "github.com/plainkit/html"
)

func main() {
    page := Html(ALang("en"),
        Head(
            Title(T("My App")),
            Meta(ACharset("UTF-8")),
            Meta(AName("viewport"), AContent("width=device-width, initial-scale=1")),
        ),
        Body(
            Header(
                H1(T("Welcome to Plain"), AClass("title")),
                Nav(
                    A(AHref("/about"), T("About")),
                    A(AHref("/contact"), T("Contact")),
                ),
            ),
            Main(
                P(T("Build type-safe HTML with Go functions."), AClass("intro")),
                Button(
                    AType("button"),
                    T("Get Started"),
                    AClass("btn btn-primary"),
                ),
            ),
        ),
    )

    fmt.Println("<!DOCTYPE html>")
    fmt.Println(Render(page))
}
Building Forms

Forms are fully type-safe with element-specific attributes:

func LoginForm() Component {
    return Form(
        AAction("/auth/login"),
        AMethod("POST"),
        AClass("login-form"),

        Div(AClass("field"),
            Label(AFor("email"), T("Email Address")),
            Input(
                AType("email"),
                AName("email"),
                AId("email"),
                ARequired(),
                APlaceholder("you@example.com"),
            ),
        ),

        Div(AClass("field"),
            Label(AFor("password"), T("Password")),
            Input(
                AType("password"),
                AName("password"),
                AId("password"),
                ARequired(),
                AMinlength("8"),
            ),
        ),

        Button(
            AType("submit"),
            T("Sign In"),
            AClass("btn-primary"),
        ),
    )
}
HTTP Handlers

Plain components integrate seamlessly with Go's HTTP server:

func homeHandler(w http.ResponseWriter, r *http.Request) {
    page := Html(ALang("en"),
        Head(
            Title(T("Home")),
            Meta(ACharset("UTF-8")),
        ),
        Body(
            H1(T("Hello, World!")),
            P(T("Built with Plain")),
        ),
    )

    w.Header().Set("Content-Type", "text/html; charset=utf-8")
    fmt.Fprint(w, "<!DOCTYPE html>\n")
    fmt.Fprint(w, Render(page))
}

func main() {
    http.HandleFunc("/", homeHandler)
    http.ListenAndServe(":8080", nil)
}
Component Composition

Build reusable components by composing smaller ones:

func Card(title, content string, actions ...Component) Component {
    return Div(AClass("card"),
        Header(AClass("card-header"),
            H3(T(title), AClass("card-title")),
        ),
        Div(AClass("card-body"),
            P(T(content)),
        ),
        Footer(AClass("card-footer"),
            actions...,
        ),
    )
}

func Dashboard() Component {
    return Div(AClass("dashboard"),
        Card("Welcome", "Get started with Plain",
            Button(AType("button"), T("Learn More"), AClass("btn-outline")),
        ),
        Card("Stats", "View your analytics",
            A(AHref("/analytics"), T("View Details"), AClass("btn-primary")),
        ),
    )
}
Working with CSS and JavaScript

Embed styles and scripts directly in your components:

func StyledPage() Component {
    return Html(ALang("en"),
        Head(
            Title(T("Styled Page")),
            Style(T(`
                .hero {
                    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
                    color: white;
                    padding: 2rem;
                    text-align: center;
                }
                .btn {
                    padding: 0.5rem 1rem;
                    border: none;
                    border-radius: 4px;
                    background: #4f46e5;
                    color: white;
                    cursor: pointer;
                }
            `)),
        ),
        Body(
            Div(AClass("hero"),
                H1(T("Beautiful Styling")),
                Button(
                    AType("button"),
                    T("Click Me"),
                    AClass("btn"),
                    AOnclick("alert('Hello from Plain!')"),
                ),
            ),
            Script(T(`
                console.log('Plain page loaded');
            `)),
        ),
    )
}

Key Features

🔒 Type Safety

Each HTML element has its own argument interface that only accepts valid attributes:

// ✅ Valid - these attributes work with Input
Input(AType("text"), AName("username"), ARequired())

// ✅ Valid - these attributes work with A
A(AHref("/home"), ATarget("_blank"), T("Home"))

// ❌ Invalid - compile error, Href not valid for Input
Input(AHref("/invalid"))

// ❌ Invalid - compile error, Required not valid for A
A(ARequired(), T("Link"))
🎯 IDE Support
  • Autocomplete: Type Input( and see only valid options
  • Go to definition: Jump to element implementations
  • Type checking: Invalid combinations fail immediately
  • Refactoring: Rename functions across your entire codebase
🚀 Zero Runtime Overhead

HTML generation uses method dispatch resolved at compile time:

component := Div(AClass("test"), T("Hello"))
html := Render(component) // Pure string building, no reflection
🧪 Easy Testing

Components are just Go values—test them like any other Go code:

func TestUserCard(t *testing.T) {
    card := UserCard("John Doe", "john@example.com")
    html := Render(card)

    assert.Contains(t, html, "John Doe")
    assert.Contains(t, html, "john@example.com")
    assert.Contains(t, html, `class="user-card"`)
}
📦 Complete HTML5 Support

Plain provides functions for all standard HTML5 elements:

  • Document: Html, Head, Body, Title, Meta, Link
  • Sections: Header, Nav, Main, Section, Article, Aside, Footer
  • Text: H1-H6, P, Div, Span, Strong, Em, Code, Pre
  • Lists: Ul, Ol, Li, Dl, Dt, Dd
  • Forms: Form, Input, Textarea, Button, Select, Option, Label
  • Tables: Table, Thead, Tbody, Tr, Th, Td
  • Media: Img, Video, Audio, Canvas, Svg
  • And more: All HTML5 elements with their specific attributes
🎨 SVG Support

Full SVG support with type-safe attributes:

func Logo() Component {
    return Svg(
        Width("100"),
        Height("100"),
        ViewBox("0 0 100 100"),
        Circle(
            Cx("50"),
            Cy("50"),
            R("40"),
            Fill("#4f46e5"),
        ),
        Text(
            X("50"),
            Y("50"),
            TextAnchor("middle"),
            Fill("white"),
            T("LOGO"),
        ),
    )
}

Architecture & Implementation

Core Types
// Component - interface implemented by all HTML elements
type Component interface {
    render(*strings.Builder)
}

// Node - represents an HTML element
type Node struct {
    Tag   string
    Attrs attrWriter
    Kids  []Component
    Void  bool // for self-closing tags
}

// TextNode - represents escaped text content
type TextNode string
Global Attributes

Every HTML element can accept global attributes through the Global type:

anyElement := Div(
    AId("main-content"),
    AClass("container active"),
    AData("role", "main"),
    AAria("label", "Main content area"),
    AStyle("margin-top: 1rem"),
    AOnclick("handleClick()"),
    // ... element-specific attributes
)
File Organization

The codebase is organized for clarity and maintainability:

├── core_node.go         # Component interface, Node struct, Render()
├── core_global.go       # Global attributes (id, class, data-*, aria-*)
├── core_content.go      # Text() and Child() helpers
├── attrs.go             # All attribute option constructors
├── tag_div.go           # Div element and its specific attributes
├── tag_input.go         # Input element and its specific attributes
├── tag_form.go          # Form, Button, Select, etc.
├── tag_*.go             # One file per HTML element group
└── svg/                 # SVG elements in separate package
    ├── tag_circle.go
    ├── tag_rect.go
    └── ...

Migration & Integration

From Template Engines

Before (html/template):

tmpl := `<div class="{{.Class}}">{{.Content}}</div>`
t := template.Must(template.New("div").Parse(tmpl))
t.Execute(w, map[string]interface{}{
    "Class": "container",
    "Content": "Hello World",
})

After (Plain):

component := Div(AClass("container"), T("Hello World"))
fmt.Fprint(w, Render(component))
From Other HTML Builders

Before (gohtml or similar):

div := &gohtml.Div{
    Class: "container",
    Children: []gohtml.Element{
        &gohtml.Text{Content: "Hello World"},
    },
}

After (Plain):

div := Div(AClass("container"), T("Hello World"))

With Gin:

r.GET("/", func(c *gin.Context) {
    page := Html(ALang("en"),
        Body(H1(T("Hello Gin + Plain!"))),
    )
    c.Header("Content-Type", "text/html")
    c.String(200, "<!DOCTYPE html>"+Render(page))
})

With Echo:

e.GET("/", func(c echo.Context) error {
    page := Html(ALang("en"),
        Body(H1(T("Hello Echo + Plain!"))),
    )
    return c.HTML(200, "<!DOCTYPE html>"+Render(page))
})

With htmx:

func TodoList(todos []Todo) Component {
    return Div(
        AId("todo-list"),
        ACustom("hx-get", "/todos"),
        ACustom("hx-trigger", "load"),
        ACustom("hx-swap", "innerHTML"),
        // Render todos...
    )
}

Contributing

We welcome contributions! The codebase is designed to be approachable:

  1. Add new HTML elements: Follow the pattern in existing tag_*.go files
  2. Improve type safety: Add element-specific attributes and validation
  3. Enhance developer experience: Better error messages, documentation, examples
  4. Test thoroughly: Add tests for new elements and edge cases

Each element follows a consistent pattern:

  • *Attrs struct for element-specific attributes
  • *Arg interface for type constraints
  • Constructor function accepting variadic arguments
  • Apply methods connecting options to attributes

License

MIT License - see LICENSE file for details.


Ready to build type-safe HTML? go get github.com/plainkit/html and start building reliable web applications with the confidence of Go's type system.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attr added in v0.13.0

func Attr(sb *strings.Builder, k, v string)

func BoolAttr added in v0.13.0

func BoolAttr(sb *strings.Builder, k string)

func Render

func Render(c Component) string

func WriteGlobal added in v0.13.0

func WriteGlobal(sb *strings.Builder, g *GlobalAttrs)

Generated WriteGlobal function based on gostar global attributes

Types

type AArg

type AArg interface {
	// contains filtered or unexported methods
}

type AAttrs

type AAttrs struct {
	Global         GlobalAttrs
	Charset        string
	Coords         string
	Download       string
	Href           string
	Hreflang       string
	Name           string
	Ping           string
	Referrerpolicy string
	Rel            string
	Rev            string
	Shape          string
	Target         string
	Type           string
}

func (*AAttrs) WriteAttrs added in v0.13.0

func (a *AAttrs) WriteAttrs(sb *strings.Builder)

type AbbrOpt added in v0.13.0

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

func AAbbr added in v0.13.0

func AAbbr(v string) AbbrOpt

type AcceptCharsetOpt

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

func AAcceptCharset added in v0.13.0

func AAcceptCharset(v string) AcceptCharsetOpt

type AcceptOpt

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

func AAccept added in v0.13.0

func AAccept(v string) AcceptOpt

type AccumulateOpt added in v0.13.0

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

func AAccumulate added in v0.13.0

func AAccumulate(v string) AccumulateOpt

type ActionOpt

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

func AAction added in v0.13.0

func AAction(v string) ActionOpt

type AdditiveOpt added in v0.13.0

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

func AAdditive added in v0.13.0

func AAdditive(v string) AdditiveOpt

type AlignOpt added in v0.13.0

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

func AAlign added in v0.13.0

func AAlign(v string) AlignOpt

type AlinkOpt added in v0.13.0

type AlinkOpt struct {
	// contains filtered or unexported fields
}
func AAlink(v string) AlinkOpt

type AllowOpt

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

func AAllow added in v0.13.0

func AAllow(v string) AllowOpt

type AllowfullscreenOpt

type AllowfullscreenOpt struct{}

func AAllowfullscreen added in v0.13.0

func AAllowfullscreen() AllowfullscreenOpt

type AllowpaymentrequestOpt added in v0.13.0

type AllowpaymentrequestOpt struct{}

func AAllowpaymentrequest added in v0.13.0

func AAllowpaymentrequest() AllowpaymentrequestOpt

type AllowusermediaOpt added in v0.13.0

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

func AAllowusermedia added in v0.13.0

func AAllowusermedia(v string) AllowusermediaOpt

type AlphaOpt added in v0.13.0

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

func AAlpha added in v0.13.0

func AAlpha(v string) AlphaOpt

type AltOpt

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

func AAlt added in v0.13.0

func AAlt(v string) AltOpt

type AmplitudeOpt added in v0.13.0

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

func AAmplitude added in v0.13.0

func AAmplitude(v string) AmplitudeOpt

type AppletArg added in v0.13.0

type AppletArg interface {
	// contains filtered or unexported methods
}

type AppletAttrs added in v0.13.0

type AppletAttrs struct {
	Global   GlobalAttrs
	Align    string
	Alt      string
	Archive  string
	Code     string
	Codebase string
	Height   string
	Hspace   string
	Name     string
	Object   string
	Vspace   string
	Width    string
}

func (*AppletAttrs) WriteAttrs added in v0.13.0

func (a *AppletAttrs) WriteAttrs(sb *strings.Builder)

type ArchiveOpt added in v0.13.0

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

func AArchive added in v0.13.0

func AArchive(v string) ArchiveOpt

type AreaArg added in v0.13.0

type AreaArg interface {
	// contains filtered or unexported methods
}

type AreaAttrs added in v0.13.0

type AreaAttrs struct {
	Global         GlobalAttrs
	Alt            string
	Coords         string
	Download       string
	Href           string
	Hreflang       string
	Nohref         bool
	Ping           string
	Referrerpolicy string
	Rel            string
	Shape          string
	Target         string
	Type           string
}

func (*AreaAttrs) WriteAttrs added in v0.13.0

func (a *AreaAttrs) WriteAttrs(sb *strings.Builder)

type AsOpt added in v0.13.0

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

func AAs added in v0.13.0

func AAs(v string) AsOpt

type Assets

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

Assets collects CSS and JS from components at compile-time

func NewAssets

func NewAssets() *Assets

NewAssets creates a new asset collector

func (*Assets) Collect

func (a *Assets) Collect(components ...Component)

Collect walks the component tree and gathers unique CSS/JS assets

func (*Assets) HasAssets

func (a *Assets) HasAssets() bool

HasAssets returns true if any CSS or JS was collected

func (*Assets) Reset

func (a *Assets) Reset()

Reset clears all collected assets

type AsyncOpt

type AsyncOpt struct{}

func AAsync added in v0.13.0

func AAsync() AsyncOpt

type AttrWriter added in v0.13.0

type AttrWriter interface {
	WriteAttrs(*strings.Builder)
}

type AttributeNameOpt added in v0.13.0

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

func AAttributeName added in v0.13.0

func AAttributeName(v string) AttributeNameOpt

type AttributeTypeOpt added in v0.13.0

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

func AAttributeType added in v0.13.0

func AAttributeType(v string) AttributeTypeOpt

type AudioArg

type AudioArg interface {
	// contains filtered or unexported methods
}

type AudioAttrs

type AudioAttrs struct {
	Global      GlobalAttrs
	Autoplay    bool
	Controls    bool
	Crossorigin string
	Loop        bool
	Muted       bool
	Preload     string
	Src         string
}

func (*AudioAttrs) WriteAttrs added in v0.13.0

func (a *AudioAttrs) WriteAttrs(sb *strings.Builder)

type AutocompleteOpt

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

func AAutocomplete added in v0.13.0

func AAutocomplete(v string) AutocompleteOpt

type AutoplayOpt

type AutoplayOpt struct{}

func AAutoplay added in v0.13.0

func AAutoplay() AutoplayOpt

type AxisOpt added in v0.13.0

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

func AAxis added in v0.13.0

func AAxis(v string) AxisOpt

type AzimuthOpt added in v0.13.0

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

func AAzimuth added in v0.13.0

func AAzimuth(v string) AzimuthOpt

type BackgroundOpt added in v0.13.0

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

func ABackground added in v0.13.0

func ABackground(v string) BackgroundOpt

type BaseArg added in v0.13.0

type BaseArg interface {
	// contains filtered or unexported methods
}

type BaseAttrs added in v0.13.0

type BaseAttrs struct {
	Global GlobalAttrs
	Href   string
	Target string
}

func (*BaseAttrs) WriteAttrs added in v0.13.0

func (a *BaseAttrs) WriteAttrs(sb *strings.Builder)

type BaseFrequencyOpt added in v0.13.0

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

func ABaseFrequency added in v0.13.0

func ABaseFrequency(v string) BaseFrequencyOpt

type BasefontArg added in v0.13.0

type BasefontArg interface {
	// contains filtered or unexported methods
}

type BasefontAttrs added in v0.13.0

type BasefontAttrs struct {
	Global GlobalAttrs
	Color  string
	Face   string
	Size   string
}

func (*BasefontAttrs) WriteAttrs added in v0.13.0

func (a *BasefontAttrs) WriteAttrs(sb *strings.Builder)

type BeginOpt added in v0.13.0

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

func ABegin added in v0.13.0

func ABegin(v string) BeginOpt

type BgcolorOpt added in v0.13.0

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

func ABgcolor added in v0.13.0

func ABgcolor(v string) BgcolorOpt

type BiasOpt added in v0.13.0

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

func ABias added in v0.13.0

func ABias(v string) BiasOpt

type BlockingOpt added in v0.13.0

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

func ABlocking added in v0.13.0

func ABlocking(v string) BlockingOpt

type BlockquoteArg

type BlockquoteArg interface {
	// contains filtered or unexported methods
}

type BlockquoteAttrs

type BlockquoteAttrs struct {
	Global GlobalAttrs
	Cite   string
}

func (*BlockquoteAttrs) WriteAttrs added in v0.13.0

func (a *BlockquoteAttrs) WriteAttrs(sb *strings.Builder)

type BodyArg

type BodyArg interface {
	// contains filtered or unexported methods
}

type BodyAttrs

type BodyAttrs struct {
	Global     GlobalAttrs
	Alink      string
	Background string
	Bgcolor    string
	Link       string
	Text       string
	Vlink      string
}

func (*BodyAttrs) WriteAttrs added in v0.13.0

func (a *BodyAttrs) WriteAttrs(sb *strings.Builder)

type BorderOpt added in v0.13.0

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

func ABorder added in v0.13.0

func ABorder(v string) BorderOpt

type BrArg

type BrArg interface {
	// contains filtered or unexported methods
}

type BrAttrs

type BrAttrs struct {
	Global GlobalAttrs
	Clear  string
}

func (*BrAttrs) WriteAttrs added in v0.13.0

func (a *BrAttrs) WriteAttrs(sb *strings.Builder)

type ButtonArg

type ButtonArg interface {
	// contains filtered or unexported methods
}

type ButtonAttrs

type ButtonAttrs struct {
	Global              GlobalAttrs
	Command             string
	Commandfor          string
	Disabled            bool
	Form                string
	Formaction          string
	Formenctype         string
	Formmethod          string
	Formnovalidate      bool
	Formtarget          string
	Name                string
	Popovertarget       string
	Popovertargetaction string
	Type                string
	Value               string
}

func (*ButtonAttrs) WriteAttrs added in v0.13.0

func (a *ButtonAttrs) WriteAttrs(sb *strings.Builder)

type ByOpt added in v0.13.0

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

func ABy added in v0.13.0

func ABy(v string) ByOpt

type CalcModeOpt added in v0.13.0

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

func ACalcMode added in v0.13.0

func ACalcMode(v string) CalcModeOpt

type CanvasArg

type CanvasArg interface {
	// contains filtered or unexported methods
}

type CanvasAttrs

type CanvasAttrs struct {
	Global GlobalAttrs
	Height string
	Width  string
}

func (*CanvasAttrs) WriteAttrs added in v0.13.0

func (a *CanvasAttrs) WriteAttrs(sb *strings.Builder)

type CaptionArg

type CaptionArg interface {
	// contains filtered or unexported methods
}

type CaptionAttrs

type CaptionAttrs struct {
	Global GlobalAttrs
	Align  string
}

func (*CaptionAttrs) WriteAttrs added in v0.13.0

func (a *CaptionAttrs) WriteAttrs(sb *strings.Builder)

type CellpaddingOpt added in v0.13.0

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

func ACellpadding added in v0.13.0

func ACellpadding(v string) CellpaddingOpt

type CellspacingOpt added in v0.13.0

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

func ACellspacing added in v0.13.0

func ACellspacing(v string) CellspacingOpt

type CharOpt added in v0.13.0

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

func AChar added in v0.13.0

func AChar(v string) CharOpt

type CharoffOpt added in v0.13.0

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

func ACharoff added in v0.13.0

func ACharoff(v string) CharoffOpt

type CharsetOpt

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

func ACharset added in v0.13.0

func ACharset(v string) CharsetOpt

type CheckedOpt

type CheckedOpt struct{}

func AChecked added in v0.13.0

func AChecked() CheckedOpt

type ChildOpt

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

func C added in v0.13.0

func C(c Component) ChildOpt

func Child

func Child(c Component) ChildOpt

func F added in v0.13.0

func F(children ...Component) ChildOpt

F is an alias for Fragment to reduce verbosity

func Fragment added in v0.13.0

func Fragment(children ...Component) ChildOpt

Fragment creates a fragment containing the given components. Like React fragments, this renders the children directly without any wrapper element.

Example:

Fragment(
  Div(T("First child")),
  P(T("Second child")),
  Span(T("Third child")),
)

This renders as three sibling elements with no containing wrapper.

type CiteOpt

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

func ACite added in v0.13.0

func ACite(v string) CiteOpt

type ClassidOpt added in v0.13.0

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

func AClassid added in v0.13.0

func AClassid(v string) ClassidOpt

type ClearOpt added in v0.13.0

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

func AClear added in v0.13.0

func AClear(v string) ClearOpt

type ClipPathUnitsOpt added in v0.13.0

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

func AClipPathUnits added in v0.13.0

func AClipPathUnits(v string) ClipPathUnitsOpt

type ClosedbyOpt added in v0.13.0

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

func AClosedby added in v0.13.0

func AClosedby(v string) ClosedbyOpt

type CodeOpt added in v0.13.0

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

func ACode added in v0.13.0

func ACode(v string) CodeOpt

type CodebaseOpt added in v0.13.0

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

func ACodebase added in v0.13.0

func ACodebase(v string) CodebaseOpt

type CodetypeOpt added in v0.13.0

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

func ACodetype added in v0.13.0

func ACodetype(v string) CodetypeOpt

type ColArg

type ColArg interface {
	// contains filtered or unexported methods
}

type ColAttrs

type ColAttrs struct {
	Global  GlobalAttrs
	Align   string
	Char    string
	Charoff string
	Span    string
	Valign  string
	Width   string
}

func (*ColAttrs) WriteAttrs added in v0.13.0

func (a *ColAttrs) WriteAttrs(sb *strings.Builder)

type ColgroupArg

type ColgroupArg interface {
	// contains filtered or unexported methods
}

type ColgroupAttrs

type ColgroupAttrs struct {
	Global  GlobalAttrs
	Align   string
	Char    string
	Charoff string
	Span    string
	Valign  string
	Width   string
}

func (*ColgroupAttrs) WriteAttrs added in v0.13.0

func (a *ColgroupAttrs) WriteAttrs(sb *strings.Builder)

type ColorOpt added in v0.13.0

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

func AColor added in v0.13.0

func AColor(v string) ColorOpt

type ColorspaceOpt added in v0.13.0

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

func AColorspace added in v0.13.0

func AColorspace(v string) ColorspaceOpt

type ColsOpt

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

func ACols added in v0.13.0

func ACols(v string) ColsOpt

type ColspanOpt

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

func AColspan added in v0.13.0

func AColspan(v string) ColspanOpt

type CommandOpt added in v0.13.0

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

func ACommand added in v0.13.0

func ACommand(v string) CommandOpt

type CommandforOpt added in v0.13.0

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

func ACommandfor added in v0.13.0

func ACommandfor(v string) CommandforOpt

type CompactOpt added in v0.13.0

type CompactOpt struct{}

func ACompact added in v0.13.0

func ACompact() CompactOpt

type Component

type Component interface {
	// contains filtered or unexported methods
}

func AssetHook

func AssetHook(name, css, js string) Component

AssetHook creates a component that carries CSS/JS for collection without rendering output. Name is used for de-duplication across the page.

type ContentOpt

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

func AContent added in v0.13.0

func AContent(v string) ContentOpt

type ControlsOpt

type ControlsOpt struct{}

func AControls added in v0.13.0

func AControls() ControlsOpt

type CoordsOpt added in v0.13.0

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

func ACoords added in v0.13.0

func ACoords(v string) CoordsOpt

type CrossoriginOpt

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

func ACrossorigin added in v0.13.0

func ACrossorigin(v string) CrossoriginOpt

type CxOpt

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

func ACx added in v0.13.0

func ACx(v string) CxOpt

type CyOpt

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

func ACy added in v0.13.0

func ACy(v string) CyOpt

type DOpt

type DOpt struct {
	// contains filtered or unexported fields
}
func AD(v string) DOpt

type DataArg added in v0.13.0

type DataArg interface {
	// contains filtered or unexported methods
}

type DataAttrs added in v0.13.0

type DataAttrs struct {
	Global GlobalAttrs
	Value  string
}

func (*DataAttrs) WriteAttrs added in v0.13.0

func (a *DataAttrs) WriteAttrs(sb *strings.Builder)

type DatetimeOpt

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

func ADatetime added in v0.13.0

func ADatetime(v string) DatetimeOpt

type DeclareOpt added in v0.13.0

type DeclareOpt struct{}

func ADeclare added in v0.13.0

func ADeclare() DeclareOpt

type DecodingOpt

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

func ADecoding added in v0.13.0

func ADecoding(v string) DecodingOpt

type DefaultOpt

type DefaultOpt struct{}

func ADefault added in v0.13.0

func ADefault() DefaultOpt

type DeferOpt

type DeferOpt struct{}

func ADefer added in v0.13.0

func ADefer() DeferOpt

type DelArg

type DelArg interface {
	// contains filtered or unexported methods
}

type DelAttrs

type DelAttrs struct {
	Global   GlobalAttrs
	Cite     string
	Datetime string
}

func (*DelAttrs) WriteAttrs added in v0.13.0

func (a *DelAttrs) WriteAttrs(sb *strings.Builder)

type DetailsArg

type DetailsArg interface {
	// contains filtered or unexported methods
}

type DetailsAttrs

type DetailsAttrs struct {
	Global GlobalAttrs
	Name   string
	Open   bool
}

func (*DetailsAttrs) WriteAttrs added in v0.13.0

func (a *DetailsAttrs) WriteAttrs(sb *strings.Builder)

type DialogArg

type DialogArg interface {
	// contains filtered or unexported methods
}

type DialogAttrs

type DialogAttrs struct {
	Global   GlobalAttrs
	Closedby string
	Open     bool
}

func (*DialogAttrs) WriteAttrs added in v0.13.0

func (a *DialogAttrs) WriteAttrs(sb *strings.Builder)

type DiffuseConstantOpt added in v0.13.0

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

func ADiffuseConstant added in v0.13.0

func ADiffuseConstant(v string) DiffuseConstantOpt

type DirArg added in v0.13.0

type DirArg interface {
	// contains filtered or unexported methods
}

type DirAttrs added in v0.13.0

type DirAttrs struct {
	Global  GlobalAttrs
	Compact bool
}

func (*DirAttrs) WriteAttrs added in v0.13.0

func (a *DirAttrs) WriteAttrs(sb *strings.Builder)

type DirnameOpt added in v0.13.0

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

func ADirname added in v0.13.0

func ADirname(v string) DirnameOpt

type DisabledOpt

type DisabledOpt struct{}

func ADisabled added in v0.13.0

func ADisabled() DisabledOpt

type DivArg

type DivArg interface {
	// contains filtered or unexported methods
}

type DivAttrs

type DivAttrs struct {
	Global GlobalAttrs
	Align  string
}

func (*DivAttrs) WriteAttrs added in v0.13.0

func (a *DivAttrs) WriteAttrs(sb *strings.Builder)

type DivisorOpt added in v0.13.0

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

func ADivisor added in v0.13.0

func ADivisor(v string) DivisorOpt

type DlArg

type DlArg interface {
	// contains filtered or unexported methods
}

type DlAttrs

type DlAttrs struct {
	Global  GlobalAttrs
	Compact bool
}

func (*DlAttrs) WriteAttrs added in v0.13.0

func (a *DlAttrs) WriteAttrs(sb *strings.Builder)

type DownloadOpt added in v0.13.0

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

func ADownload added in v0.13.0

func ADownload(v string) DownloadOpt

type DurOpt added in v0.13.0

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

func ADur added in v0.13.0

func ADur(v string) DurOpt

type DxOpt

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

func ADx added in v0.13.0

func ADx(v string) DxOpt

type DyOpt

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

func ADy added in v0.13.0

func ADy(v string) DyOpt

type EdgeModeOpt added in v0.13.0

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

func AEdgeMode added in v0.13.0

func AEdgeMode(v string) EdgeModeOpt

type ElevationOpt added in v0.13.0

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

func AElevation added in v0.13.0

func AElevation(v string) ElevationOpt

type EmbedArg added in v0.13.0

type EmbedArg interface {
	// contains filtered or unexported methods
}

type EmbedAttrs added in v0.13.0

type EmbedAttrs struct {
	Global GlobalAttrs
	Height string
	Src    string
	Type   string
	Width  string
}

func (*EmbedAttrs) WriteAttrs added in v0.13.0

func (a *EmbedAttrs) WriteAttrs(sb *strings.Builder)

type EnctypeOpt

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

func AEnctype added in v0.13.0

func AEnctype(v string) EnctypeOpt

type EndOpt added in v0.13.0

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

func AEnd added in v0.13.0

func AEnd(v string) EndOpt

type ExponentOpt added in v0.13.0

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

func AExponent added in v0.13.0

func AExponent(v string) ExponentOpt

type ExternalResourcesRequiredOpt added in v0.13.0

type ExternalResourcesRequiredOpt struct{}

func AExternalResourcesRequired added in v0.13.0

func AExternalResourcesRequired() ExternalResourcesRequiredOpt

type FaceOpt added in v0.13.0

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

func AFace added in v0.13.0

func AFace(v string) FaceOpt

type FetchpriorityOpt added in v0.13.0

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

func AFetchpriority added in v0.13.0

func AFetchpriority(v string) FetchpriorityOpt

type FieldsetArg

type FieldsetArg interface {
	// contains filtered or unexported methods
}

type FieldsetAttrs

type FieldsetAttrs struct {
	Global   GlobalAttrs
	Disabled bool
	Form     string
	Name     string
}

func (*FieldsetAttrs) WriteAttrs added in v0.13.0

func (a *FieldsetAttrs) WriteAttrs(sb *strings.Builder)

type FillOpacityOpt

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

func AFillOpacity added in v0.13.0

func AFillOpacity(v string) FillOpacityOpt

type FilterUnitsOpt added in v0.13.0

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

func AFilterUnits added in v0.13.0

func AFilterUnits(v string) FilterUnitsOpt

type FloodColorOpt added in v0.13.0

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

func AFloodColor added in v0.13.0

func AFloodColor(v string) FloodColorOpt

type FloodOpacityOpt added in v0.13.0

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

func AFloodOpacity added in v0.13.0

func AFloodOpacity(v string) FloodOpacityOpt

type FontArg added in v0.13.0

type FontArg interface {
	// contains filtered or unexported methods
}

type FontAttrs added in v0.13.0

type FontAttrs struct {
	Global GlobalAttrs
	Color  string
	Face   string
	Size   string
}

func (*FontAttrs) WriteAttrs added in v0.13.0

func (a *FontAttrs) WriteAttrs(sb *strings.Builder)

type ForOpt

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

func AFor added in v0.13.0

func AFor(v string) ForOpt

type FormArg

type FormArg interface {
	// contains filtered or unexported methods
}

type FormAttrs

type FormAttrs struct {
	Global        GlobalAttrs
	Accept        string
	AcceptCharset string
	Action        string
	Autocomplete  string
	Enctype       string
	Method        string
	Name          string
	Novalidate    bool
	Target        string
}

func (*FormAttrs) WriteAttrs added in v0.13.0

func (a *FormAttrs) WriteAttrs(sb *strings.Builder)

type FormOpt

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

func AForm added in v0.13.0

func AForm(v string) FormOpt

type FormactionOpt

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

func AFormaction added in v0.13.0

func AFormaction(v string) FormactionOpt

type FormenctypeOpt

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

func AFormenctype added in v0.13.0

func AFormenctype(v string) FormenctypeOpt

type FormmethodOpt

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

func AFormmethod added in v0.13.0

func AFormmethod(v string) FormmethodOpt

type FormnovalidateOpt

type FormnovalidateOpt struct{}

func AFormnovalidate added in v0.13.0

func AFormnovalidate() FormnovalidateOpt

type FormtargetOpt

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

func AFormtarget added in v0.13.0

func AFormtarget(v string) FormtargetOpt

type FragmentNode added in v0.13.0

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

FragmentNode represents a collection of components that render without a wrapper element, similar to React's <> fragment syntax. It implements Component and can be used anywhere a single Component is expected, but renders as multiple sibling elements.

func (FragmentNode) Children added in v0.13.0

func (f FragmentNode) Children() []Component

Children exposes the fragment's children for traversals that need to walk the component tree (e.g., asset collection).

type FrameArg added in v0.13.0

type FrameArg interface {
	// contains filtered or unexported methods
}

type FrameAttrs added in v0.13.0

type FrameAttrs struct {
	Global       GlobalAttrs
	Frameborder  string
	Longdesc     string
	Marginheight string
	Marginwidth  string
	Name         string
	Noresize     bool
	Scrolling    string
	Src          string
}

func (*FrameAttrs) WriteAttrs added in v0.13.0

func (a *FrameAttrs) WriteAttrs(sb *strings.Builder)

type FrameOpt added in v0.13.0

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

func AFrame added in v0.13.0

func AFrame(v string) FrameOpt

type FrameborderOpt added in v0.13.0

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

func AFrameborder added in v0.13.0

func AFrameborder(v string) FrameborderOpt

type FramesetArg added in v0.13.0

type FramesetArg interface {
	// contains filtered or unexported methods
}

type FramesetAttrs added in v0.13.0

type FramesetAttrs struct {
	Global GlobalAttrs
	Cols   string
	Rows   string
}

func (*FramesetAttrs) WriteAttrs added in v0.13.0

func (a *FramesetAttrs) WriteAttrs(sb *strings.Builder)

type FromOpt added in v0.13.0

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

func AFrom added in v0.13.0

func AFrom(v string) FromOpt

type FxOpt added in v0.13.0

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

func AFx added in v0.13.0

func AFx(v string) FxOpt

type FyOpt added in v0.13.0

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

func AFy added in v0.13.0

func AFy(v string) FyOpt

type Global

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

Global option: one glue impl for all tags (methods are added in tag files)

func AAccesskey added in v0.13.0

func AAccesskey(v string) Global

func AAria added in v0.13.0

func AAria(k, v string) Global

func AAutocapitalize added in v0.13.0

func AAutocapitalize(v string) Global

func AAutocorrect added in v0.13.0

func AAutocorrect(v string) Global

func AAutofocus added in v0.13.0

func AAutofocus() Global

func AClass added in v0.13.0

func AClass(v string) Global

Global attribute constructors

func AContenteditable added in v0.13.0

func AContenteditable(v string) Global

func ACustom added in v0.13.0

func ACustom(k, v string) Global

func AData added in v0.13.0

func AData(k, v string) Global

Map-like convenience functions

func ADir added in v0.13.0

func ADir(v string) Global

func ADraggable added in v0.13.0

func ADraggable(b bool) Global

func AEnterkeyhint added in v0.13.0

func AEnterkeyhint(v string) Global

func AExportparts added in v0.13.0

func AExportparts(v string) Global

func AHidden added in v0.13.0

func AHidden() Global

func AId added in v0.13.0

func AId(v string) Global

func AInert added in v0.13.0

func AInert() Global

func AInputmode added in v0.13.0

func AInputmode(v string) Global

func AIsAttr added in v0.13.0

func AIsAttr(v string) Global

func AItemid added in v0.13.0

func AItemid(v string) Global

func AItemprop added in v0.13.0

func AItemprop(v string) Global

func AItemref added in v0.13.0

func AItemref(v string) Global

func AItemscope added in v0.13.0

func AItemscope() Global

func AItemtype added in v0.13.0

func AItemtype(v string) Global

func ALang added in v0.13.0

func ALang(v string) Global

func ANonce added in v0.13.0

func ANonce(v string) Global

func AOn added in v0.13.0

func AOn(ev, handler string) Global

func APart added in v0.13.0

func APart(v string) Global

func APopover added in v0.13.0

func APopover(v string) Global

func ASlot added in v0.13.0

func ASlot(v string) Global

func ASpellcheck added in v0.13.0

func ASpellcheck(b bool) Global

func AStyle added in v0.13.0

func AStyle(style string) Global

func ATabindex added in v0.13.0

func ATabindex(i int) Global

func ATitle added in v0.13.0

func ATitle(v string) Global

func ATranslate added in v0.13.0

func ATranslate(b bool) Global

func AWritingsuggestions added in v0.13.0

func AWritingsuggestions(b bool) Global

func (Global) Do added in v0.13.0

func (g Global) Do(ga *GlobalAttrs)

Do applies the global attribute function to GlobalAttrs (public for SVG package integration)

type GlobalAttrs

type GlobalAttrs struct {
	// Generated from wooorm global attributes
	// Common core attributes
	Class           string
	Accesskey       string
	Autocapitalize  string
	Autocorrect     string
	Contenteditable string
	Dir             string
	Enterkeyhint    string
	Exportparts     string
	Id              string
	Inputmode       string
	Is              string
	Itemid          string
	Itemprop        string
	Itemref         string
	Itemtype        string
	Lang            string
	Nonce           string
	Part            string
	Popover         string
	Slot            string
	Title           string

	// Style attribute as a single string
	Style string

	// Map attributes
	Aria   map[string]string // aria-*
	Data   map[string]string // data-*
	Events map[string]string // "onclick" -> "handler()"
	Custom map[string]string // custom attributes like hx-*, x-*, etc.

	// Pointers for tri-state values
	Tabindex           *int
	Draggable          *string
	Spellcheck         *string
	Translate          *string
	Writingsuggestions *string

	// Booleans
	Autofocus, Hidden, Inert, Itemscope bool
}

type GradientTransformOpt added in v0.13.0

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

func AGradientTransform added in v0.13.0

func AGradientTransform(v string) GradientTransformOpt

type GradientUnitsOpt added in v0.13.0

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

func AGradientUnits added in v0.13.0

func AGradientUnits(v string) GradientUnitsOpt

type H1Arg

type H1Arg interface {
	// contains filtered or unexported methods
}

type H1Attrs

type H1Attrs struct {
	Global GlobalAttrs
	Align  string
}

func (*H1Attrs) WriteAttrs added in v0.13.0

func (a *H1Attrs) WriteAttrs(sb *strings.Builder)

type H2Arg

type H2Arg interface {
	// contains filtered or unexported methods
}

type H2Attrs

type H2Attrs struct {
	Global GlobalAttrs
	Align  string
}

func (*H2Attrs) WriteAttrs added in v0.13.0

func (a *H2Attrs) WriteAttrs(sb *strings.Builder)

type H3Arg

type H3Arg interface {
	// contains filtered or unexported methods
}

type H3Attrs

type H3Attrs struct {
	Global GlobalAttrs
	Align  string
}

func (*H3Attrs) WriteAttrs added in v0.13.0

func (a *H3Attrs) WriteAttrs(sb *strings.Builder)

type H4Arg

type H4Arg interface {
	// contains filtered or unexported methods
}

type H4Attrs

type H4Attrs struct {
	Global GlobalAttrs
	Align  string
}

func (*H4Attrs) WriteAttrs added in v0.13.0

func (a *H4Attrs) WriteAttrs(sb *strings.Builder)

type H5Arg

type H5Arg interface {
	// contains filtered or unexported methods
}

type H5Attrs

type H5Attrs struct {
	Global GlobalAttrs
	Align  string
}

func (*H5Attrs) WriteAttrs added in v0.13.0

func (a *H5Attrs) WriteAttrs(sb *strings.Builder)

type H6Arg

type H6Arg interface {
	// contains filtered or unexported methods
}

type H6Attrs

type H6Attrs struct {
	Global GlobalAttrs
	Align  string
}

func (*H6Attrs) WriteAttrs added in v0.13.0

func (a *H6Attrs) WriteAttrs(sb *strings.Builder)

type HasCSS

type HasCSS interface {
	CSS() string
}

HasCSS interface for components that provide CSS

type HasJS

type HasJS interface {
	JS() string
}

HasJS interface for components that provide JavaScript

type HasName

type HasName interface {
	Name() string
}

HasName interface for components that provide explicit names for deduplication

type HeadArg

type HeadArg interface {
	// contains filtered or unexported methods
}

type HeadAttrs

type HeadAttrs struct {
	Global  GlobalAttrs
	Profile string
}

func (*HeadAttrs) WriteAttrs added in v0.13.0

func (a *HeadAttrs) WriteAttrs(sb *strings.Builder)

type HeadersOpt

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

func AHeaders added in v0.13.0

func AHeaders(v string) HeadersOpt

type HeightOpt

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

func AHeight added in v0.13.0

func AHeight(v string) HeightOpt

type HighOpt added in v0.13.0

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

func AHigh added in v0.13.0

func AHigh(v string) HighOpt

type HrArg

type HrArg interface {
	// contains filtered or unexported methods
}

type HrAttrs

type HrAttrs struct {
	Global  GlobalAttrs
	Align   string
	Noshade bool
	Size    string
	Width   string
}

func (*HrAttrs) WriteAttrs added in v0.13.0

func (a *HrAttrs) WriteAttrs(sb *strings.Builder)

type HrefOpt

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

func AHref added in v0.13.0

func AHref(v string) HrefOpt

type HreflangOpt

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

func AHreflang added in v0.13.0

func AHreflang(v string) HreflangOpt

type HspaceOpt added in v0.13.0

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

func AHspace added in v0.13.0

func AHspace(v string) HspaceOpt

type HtmlArg

type HtmlArg interface {
	// contains filtered or unexported methods
}

type HtmlAttrs

type HtmlAttrs struct {
	Global   GlobalAttrs
	Manifest string
	Version  string
}

func (*HtmlAttrs) WriteAttrs added in v0.13.0

func (a *HtmlAttrs) WriteAttrs(sb *strings.Builder)

type HttpEquivOpt

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

func AHttpEquiv added in v0.13.0

func AHttpEquiv(v string) HttpEquivOpt

type IframeArg

type IframeArg interface {
	// contains filtered or unexported methods
}

type IframeAttrs

type IframeAttrs struct {
	Global              GlobalAttrs
	Align               string
	Allow               string
	Allowfullscreen     bool
	Allowpaymentrequest bool
	Allowusermedia      string
	Frameborder         string
	Height              string
	Loading             string
	Longdesc            string
	Marginheight        string
	Marginwidth         string
	Name                string
	Referrerpolicy      string
	Sandbox             string
	Scrolling           string
	Src                 string
	Srcdoc              string
	Width               string
}

func (*IframeAttrs) WriteAttrs added in v0.13.0

func (a *IframeAttrs) WriteAttrs(sb *strings.Builder)

type ImagesizesOpt added in v0.13.0

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

func AImagesizes added in v0.13.0

func AImagesizes(v string) ImagesizesOpt

type ImagesrcsetOpt added in v0.13.0

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

func AImagesrcset added in v0.13.0

func AImagesrcset(v string) ImagesrcsetOpt

type ImgArg

type ImgArg interface {
	// contains filtered or unexported methods
}

type ImgAttrs

type ImgAttrs struct {
	Global         GlobalAttrs
	Align          string
	Alt            string
	Border         string
	Crossorigin    string
	Decoding       string
	Fetchpriority  string
	Height         string
	Hspace         string
	Ismap          bool
	Loading        string
	Longdesc       string
	Name           string
	Referrerpolicy string
	Sizes          string
	Src            string
	Srcset         string
	Usemap         string
	Vspace         string
	Width          string
}

func (*ImgAttrs) WriteAttrs added in v0.13.0

func (a *ImgAttrs) WriteAttrs(sb *strings.Builder)

type In2Opt added in v0.13.0

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

func AIn2 added in v0.13.0

func AIn2(v string) In2Opt

type InOpt added in v0.13.0

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

func AIn added in v0.13.0

func AIn(v string) InOpt

type InputArg

type InputArg interface {
	// contains filtered or unexported methods
}

type InputAttrs

type InputAttrs struct {
	Global              GlobalAttrs
	Accept              string
	Align               string
	Alpha               string
	Alt                 string
	Autocomplete        string
	Checked             bool
	Colorspace          string
	Dirname             string
	Disabled            bool
	Form                string
	Formaction          string
	Formenctype         string
	Formmethod          string
	Formnovalidate      bool
	Formtarget          string
	Height              string
	Ismap               bool
	List                string
	Max                 string
	Maxlength           string
	Min                 string
	Minlength           string
	Multiple            bool
	Name                string
	Pattern             string
	Placeholder         string
	Popovertarget       string
	Popovertargetaction string
	Readonly            bool
	Required            bool
	Size                string
	Src                 string
	Step                string
	Type                string
	Usemap              string
	Value               string
	Width               string
}

func (*InputAttrs) WriteAttrs added in v0.13.0

func (a *InputAttrs) WriteAttrs(sb *strings.Builder)

type InsArg

type InsArg interface {
	// contains filtered or unexported methods
}

type InsAttrs

type InsAttrs struct {
	Global   GlobalAttrs
	Cite     string
	Datetime string
}

func (*InsAttrs) WriteAttrs added in v0.13.0

func (a *InsAttrs) WriteAttrs(sb *strings.Builder)

type IntegrityOpt added in v0.13.0

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

func AIntegrity added in v0.13.0

func AIntegrity(v string) IntegrityOpt

type InterceptOpt added in v0.13.0

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

func AIntercept added in v0.13.0

func AIntercept(v string) InterceptOpt

type IsindexArg added in v0.13.0

type IsindexArg interface {
	// contains filtered or unexported methods
}

type IsindexAttrs added in v0.13.0

type IsindexAttrs struct {
	Global GlobalAttrs
	Prompt string
}

func (*IsindexAttrs) WriteAttrs added in v0.13.0

func (a *IsindexAttrs) WriteAttrs(sb *strings.Builder)

type IsmapOpt added in v0.13.0

type IsmapOpt struct{}

func AIsmap added in v0.13.0

func AIsmap() IsmapOpt

type K1Opt added in v0.13.0

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

func AK1 added in v0.13.0

func AK1(v string) K1Opt

type K2Opt added in v0.13.0

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

func AK2 added in v0.13.0

func AK2(v string) K2Opt

type K3Opt added in v0.13.0

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

func AK3 added in v0.13.0

func AK3(v string) K3Opt

type K4Opt added in v0.13.0

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

func AK4 added in v0.13.0

func AK4(v string) K4Opt

type KernelMatrixOpt added in v0.13.0

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

func AKernelMatrix added in v0.13.0

func AKernelMatrix(v string) KernelMatrixOpt

type KernelUnitLengthOpt added in v0.13.0

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

func AKernelUnitLength added in v0.13.0

func AKernelUnitLength(v string) KernelUnitLengthOpt

type KeySplinesOpt added in v0.13.0

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

func AKeySplines added in v0.13.0

func AKeySplines(v string) KeySplinesOpt

type KeyTimesOpt added in v0.13.0

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

func AKeyTimes added in v0.13.0

func AKeyTimes(v string) KeyTimesOpt

type KindOpt

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

func AKind added in v0.13.0

func AKind(v string) KindOpt

type LabelArg

type LabelArg interface {
	// contains filtered or unexported methods
}

type LabelAttrs

type LabelAttrs struct {
	Global GlobalAttrs
	For    string
	Form   string
}

func (*LabelAttrs) WriteAttrs added in v0.13.0

func (a *LabelAttrs) WriteAttrs(sb *strings.Builder)

type LabelOpt

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

func ALabel added in v0.13.0

func ALabel(v string) LabelOpt

type LanguageOpt added in v0.13.0

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

func ALanguage added in v0.13.0

func ALanguage(v string) LanguageOpt

type LegendArg

type LegendArg interface {
	// contains filtered or unexported methods
}

type LegendAttrs

type LegendAttrs struct {
	Global GlobalAttrs
	Align  string
}

func (*LegendAttrs) WriteAttrs added in v0.13.0

func (a *LegendAttrs) WriteAttrs(sb *strings.Builder)

type LengthAdjustOpt

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

func ALengthAdjust added in v0.13.0

func ALengthAdjust(v string) LengthAdjustOpt

type LiArg

type LiArg interface {
	// contains filtered or unexported methods
}

type LiAttrs

type LiAttrs struct {
	Global GlobalAttrs
	Type   string
	Value  string
}

func (*LiAttrs) WriteAttrs added in v0.13.0

func (a *LiAttrs) WriteAttrs(sb *strings.Builder)

type LimitingConeAngleOpt added in v0.13.0

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

func ALimitingConeAngle added in v0.13.0

func ALimitingConeAngle(v string) LimitingConeAngleOpt

type LinkArg

type LinkArg interface {
	// contains filtered or unexported methods
}

type LinkAttrs

type LinkAttrs struct {
	Global         GlobalAttrs
	As             string
	Blocking       string
	Charset        string
	Color          string
	Crossorigin    string
	Disabled       bool
	Fetchpriority  string
	Href           string
	Hreflang       string
	Imagesizes     string
	Imagesrcset    string
	Integrity      string
	Media          string
	Referrerpolicy string
	Rel            string
	Rev            string
	Sizes          string
	Target         string
	Type           string
}

func (*LinkAttrs) WriteAttrs added in v0.13.0

func (a *LinkAttrs) WriteAttrs(sb *strings.Builder)

type LinkOpt added in v0.13.0

type LinkOpt struct {
	// contains filtered or unexported fields
}
func ALink(v string) LinkOpt

type ListOpt

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

func AList added in v0.13.0

func AList(v string) ListOpt

type LoadingOpt

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

func ALoading added in v0.13.0

func ALoading(v string) LoadingOpt

type LongdescOpt added in v0.13.0

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

func ALongdesc added in v0.13.0

func ALongdesc(v string) LongdescOpt

type LoopOpt

type LoopOpt struct{}

func ALoop added in v0.13.0

func ALoop() LoopOpt

type LowOpt added in v0.13.0

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

func ALow added in v0.13.0

func ALow(v string) LowOpt

type ManifestOpt

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

func AManifest added in v0.13.0

func AManifest(v string) ManifestOpt

type MapArg added in v0.13.0

type MapArg interface {
	// contains filtered or unexported methods
}

type MapAttrs added in v0.13.0

type MapAttrs struct {
	Global GlobalAttrs
	Name   string
}

func (*MapAttrs) WriteAttrs added in v0.13.0

func (a *MapAttrs) WriteAttrs(sb *strings.Builder)

type MarginheightOpt added in v0.13.0

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

func AMarginheight added in v0.13.0

func AMarginheight(v string) MarginheightOpt

type MarginwidthOpt added in v0.13.0

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

func AMarginwidth added in v0.13.0

func AMarginwidth(v string) MarginwidthOpt

type MarkerHeightOpt added in v0.13.0

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

func AMarkerHeight added in v0.13.0

func AMarkerHeight(v string) MarkerHeightOpt

type MarkerUnitsOpt added in v0.13.0

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

func AMarkerUnits added in v0.13.0

func AMarkerUnits(v string) MarkerUnitsOpt

type MarkerWidthOpt added in v0.13.0

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

func AMarkerWidth added in v0.13.0

func AMarkerWidth(v string) MarkerWidthOpt

type MaskContentUnitsOpt added in v0.13.0

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

func AMaskContentUnits added in v0.13.0

func AMaskContentUnits(v string) MaskContentUnitsOpt

type MaskUnitsOpt added in v0.13.0

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

func AMaskUnits added in v0.13.0

func AMaskUnits(v string) MaskUnitsOpt

type MaxOpt

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

func AMax added in v0.13.0

func AMax(v string) MaxOpt

type MaxlengthOpt

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

func AMaxlength added in v0.13.0

func AMaxlength(v string) MaxlengthOpt

type MediaOpt

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

func AMedia added in v0.13.0

func AMedia(v string) MediaOpt
type MenuArg interface {
	// contains filtered or unexported methods
}
type MenuAttrs struct {
	Global  GlobalAttrs
	Compact bool
}
func (a *MenuAttrs) WriteAttrs(sb *strings.Builder)

type MetaArg

type MetaArg interface {
	// contains filtered or unexported methods
}

type MetaAttrs

type MetaAttrs struct {
	Global    GlobalAttrs
	Charset   string
	Content   string
	HttpEquiv string
	Media     string
	Name      string
	Scheme    string
}

func (*MetaAttrs) WriteAttrs added in v0.13.0

func (a *MetaAttrs) WriteAttrs(sb *strings.Builder)

type MeterArg added in v0.13.0

type MeterArg interface {
	// contains filtered or unexported methods
}

type MeterAttrs added in v0.13.0

type MeterAttrs struct {
	Global  GlobalAttrs
	High    string
	Low     string
	Max     string
	Min     string
	Optimum string
	Value   string
}

func (*MeterAttrs) WriteAttrs added in v0.13.0

func (a *MeterAttrs) WriteAttrs(sb *strings.Builder)

type MethodOpt

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

func AMethod added in v0.13.0

func AMethod(v string) MethodOpt

type MinOpt

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

func AMin added in v0.13.0

func AMin(v string) MinOpt

type MinlengthOpt

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

func AMinlength added in v0.13.0

func AMinlength(v string) MinlengthOpt

type ModeOpt added in v0.13.0

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

func AMode added in v0.13.0

func AMode(v string) ModeOpt

type MultipleOpt

type MultipleOpt struct{}

func AMultiple added in v0.13.0

func AMultiple() MultipleOpt

type MutedOpt

type MutedOpt struct{}

func AMuted added in v0.13.0

func AMuted() MutedOpt

type NameOpt

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

func AName added in v0.13.0

func AName(v string) NameOpt

type Node

type Node struct {
	Tag       string
	Attrs     any         // must implement AttrWriter
	Kids      []Component // empty for void tags
	Void      bool
	AssetCSS  string // CSS to be collected by asset system
	AssetJS   string // JavaScript to be collected by asset system
	AssetName string // Name for asset deduplication
}

func A

func A(args ...AArg) Node

func Applet added in v0.13.0

func Applet(args ...AppletArg) Node

func Area added in v0.13.0

func Area(args ...AreaArg) Node

func Audio

func Audio(args ...AudioArg) Node

func Base added in v0.13.0

func Base(args ...BaseArg) Node

func Basefont added in v0.13.0

func Basefont(args ...BasefontArg) Node

func Blockquote

func Blockquote(args ...BlockquoteArg) Node

func Body

func Body(args ...BodyArg) Node

func Br

func Br(args ...BrArg) Node

func Button

func Button(args ...ButtonArg) Node

func Canvas

func Canvas(args ...CanvasArg) Node

func Caption

func Caption(args ...CaptionArg) Node

func Col

func Col(args ...ColArg) Node

func Colgroup

func Colgroup(args ...ColgroupArg) Node

func Data

func Data(args ...DataArg) Node

func Del

func Del(args ...DelArg) Node

func Details

func Details(args ...DetailsArg) Node

func Dialog

func Dialog(args ...DialogArg) Node

func Dir

func Dir(args ...DirArg) Node

func Div

func Div(args ...DivArg) Node

func Dl

func Dl(args ...DlArg) Node

func Embed added in v0.13.0

func Embed(args ...EmbedArg) Node

func Fieldset

func Fieldset(args ...FieldsetArg) Node

func Font added in v0.13.0

func Font(args ...FontArg) Node

func Form

func Form(args ...FormArg) Node

func Frame added in v0.13.0

func Frame(args ...FrameArg) Node

func Frameset added in v0.13.0

func Frameset(args ...FramesetArg) Node

func H1

func H1(args ...H1Arg) Node

func H2

func H2(args ...H2Arg) Node

func H3

func H3(args ...H3Arg) Node

func H4

func H4(args ...H4Arg) Node

func H5

func H5(args ...H5Arg) Node

func H6

func H6(args ...H6Arg) Node
func Head(args ...HeadArg) Node

func Hr

func Hr(args ...HrArg) Node

func Html

func Html(args ...HtmlArg) Node

func Iframe

func Iframe(args ...IframeArg) Node

func Img

func Img(args ...ImgArg) Node

func Input

func Input(args ...InputArg) Node

func Ins

func Ins(args ...InsArg) Node

func Isindex added in v0.13.0

func Isindex(args ...IsindexArg) Node

func Label

func Label(args ...LabelArg) Node

func Legend

func Legend(args ...LegendArg) Node

func Li

func Li(args ...LiArg) Node
func Link(args ...LinkArg) Node

func Map added in v0.13.0

func Map(args ...MapArg) Node
func Menu(args ...MenuArg) Node

func Meta

func Meta(args ...MetaArg) Node

func Meter added in v0.13.0

func Meter(args ...MeterArg) Node

func Object added in v0.13.0

func Object(args ...ObjectArg) Node

func Ol

func Ol(args ...OlArg) Node

func Optgroup

func Optgroup(args ...OptgroupArg) Node

func Option

func Option(args ...OptionArg) Node

func Output added in v0.13.0

func Output(args ...OutputArg) Node

func P

func P(args ...PArg) Node

func Param added in v0.13.0

func Param(args ...ParamArg) Node

func Pre

func Pre(args ...PreArg) Node

func Progress added in v0.13.0

func Progress(args ...ProgressArg) Node

func Q

func Q(args ...QArg) Node

func Script

func Script(args ...ScriptArg) Node

func Select

func Select(args ...SelectArg) Node

func Slot

func Slot(args ...SlotArg) Node

func Source

func Source(args ...SourceArg) Node

func Style

func Style(args ...StyleArg) Node

func Svg

func Svg(args ...SvgArg) Node

Svg creates an SVG svg element

func SvgAnimate added in v0.13.0

func SvgAnimate(args ...SvgAnimateArg) Node

SvgAnimate creates an SVG animate element (self-closing)

func SvgAnimateMotion added in v0.13.0

func SvgAnimateMotion(args ...SvgAnimateMotionArg) Node

SvgAnimateMotion creates an SVG animateMotion element (self-closing)

func SvgAnimateTransform added in v0.13.0

func SvgAnimateTransform(args ...SvgAnimateTransformArg) Node

SvgAnimateTransform creates an SVG animateTransform element (self-closing)

func SvgCircle added in v0.13.0

func SvgCircle(args ...SvgCircleArg) Node

SvgCircle creates an SVG circle element (self-closing)

func SvgClipPath added in v0.13.0

func SvgClipPath(args ...SvgClipPathArg) Node

SvgClipPath creates an SVG clipPath element

func SvgDefs added in v0.13.0

func SvgDefs(args ...SvgDefsArg) Node

SvgDefs creates an SVG defs element

func SvgDesc added in v0.13.0

func SvgDesc(args ...SvgDescArg) Node

SvgDesc creates an SVG desc element

func SvgEllipse added in v0.13.0

func SvgEllipse(args ...SvgEllipseArg) Node

SvgEllipse creates an SVG ellipse element (self-closing)

func SvgFeBlend added in v0.13.0

func SvgFeBlend(args ...SvgFeBlendArg) Node

SvgFeBlend creates an SVG feBlend element

func SvgFeColorMatrix added in v0.13.0

func SvgFeColorMatrix(args ...SvgFeColorMatrixArg) Node

SvgFeColorMatrix creates an SVG feColorMatrix element

func SvgFeComponentTransfer added in v0.13.0

func SvgFeComponentTransfer(args ...SvgFeComponentTransferArg) Node

SvgFeComponentTransfer creates an SVG feComponentTransfer element

func SvgFeComposite added in v0.13.0

func SvgFeComposite(args ...SvgFeCompositeArg) Node

SvgFeComposite creates an SVG feComposite element

func SvgFeConvolveMatrix added in v0.13.0

func SvgFeConvolveMatrix(args ...SvgFeConvolveMatrixArg) Node

SvgFeConvolveMatrix creates an SVG feConvolveMatrix element

func SvgFeDiffuseLighting added in v0.13.0

func SvgFeDiffuseLighting(args ...SvgFeDiffuseLightingArg) Node

SvgFeDiffuseLighting creates an SVG feDiffuseLighting element

func SvgFeDisplacementMap added in v0.13.0

func SvgFeDisplacementMap(args ...SvgFeDisplacementMapArg) Node

SvgFeDisplacementMap creates an SVG feDisplacementMap element

func SvgFeDistantLight added in v0.13.0

func SvgFeDistantLight(args ...SvgFeDistantLightArg) Node

SvgFeDistantLight creates an SVG feDistantLight element

func SvgFeDropShadow added in v0.13.0

func SvgFeDropShadow(args ...SvgFeDropShadowArg) Node

SvgFeDropShadow creates an SVG feDropShadow element

func SvgFeFlood added in v0.13.0

func SvgFeFlood(args ...SvgFeFloodArg) Node

SvgFeFlood creates an SVG feFlood element

func SvgFeFuncA added in v0.13.0

func SvgFeFuncA(args ...SvgFeFuncAArg) Node

SvgFeFuncA creates an SVG feFuncA element

func SvgFeFuncB added in v0.13.0

func SvgFeFuncB(args ...SvgFeFuncBArg) Node

SvgFeFuncB creates an SVG feFuncB element

func SvgFeFuncG added in v0.13.0

func SvgFeFuncG(args ...SvgFeFuncGArg) Node

SvgFeFuncG creates an SVG feFuncG element

func SvgFeFuncR added in v0.13.0

func SvgFeFuncR(args ...SvgFeFuncRArg) Node

SvgFeFuncR creates an SVG feFuncR element

func SvgFeGaussianBlur added in v0.13.0

func SvgFeGaussianBlur(args ...SvgFeGaussianBlurArg) Node

SvgFeGaussianBlur creates an SVG feGaussianBlur element

func SvgFeImage added in v0.13.0

func SvgFeImage(args ...SvgFeImageArg) Node

SvgFeImage creates an SVG feImage element

func SvgFeMerge added in v0.13.0

func SvgFeMerge(args ...SvgFeMergeArg) Node

SvgFeMerge creates an SVG feMerge element

func SvgFeMergeNode added in v0.13.0

func SvgFeMergeNode(args ...SvgFeMergeNodeArg) Node

SvgFeMergeNode creates an SVG feMergeNode element

func SvgFeMorphology added in v0.13.0

func SvgFeMorphology(args ...SvgFeMorphologyArg) Node

SvgFeMorphology creates an SVG feMorphology element

func SvgFeOffset added in v0.13.0

func SvgFeOffset(args ...SvgFeOffsetArg) Node

SvgFeOffset creates an SVG feOffset element

func SvgFePointLight added in v0.13.0

func SvgFePointLight(args ...SvgFePointLightArg) Node

SvgFePointLight creates an SVG fePointLight element

func SvgFeSpecularLighting added in v0.13.0

func SvgFeSpecularLighting(args ...SvgFeSpecularLightingArg) Node

SvgFeSpecularLighting creates an SVG feSpecularLighting element

func SvgFeSpotLight added in v0.13.0

func SvgFeSpotLight(args ...SvgFeSpotLightArg) Node

SvgFeSpotLight creates an SVG feSpotLight element

func SvgFeTile added in v0.13.0

func SvgFeTile(args ...SvgFeTileArg) Node

SvgFeTile creates an SVG feTile element

func SvgFeTurbulence added in v0.13.0

func SvgFeTurbulence(args ...SvgFeTurbulenceArg) Node

SvgFeTurbulence creates an SVG feTurbulence element

func SvgFilter added in v0.13.0

func SvgFilter(args ...SvgFilterArg) Node

SvgFilter creates an SVG filter element

func SvgForeignObject added in v0.13.0

func SvgForeignObject(args ...SvgForeignObjectArg) Node

SvgForeignObject creates an SVG foreignObject element

func SvgG added in v0.13.0

func SvgG(args ...SvgGArg) Node

SvgG creates an SVG g element

func SvgImage added in v0.13.0

func SvgImage(args ...SvgImageArg) Node

SvgImage creates an SVG image element

func SvgLine added in v0.13.0

func SvgLine(args ...SvgLineArg) Node

SvgLine creates an SVG line element (self-closing)

func SvgLinearGradient added in v0.13.0

func SvgLinearGradient(args ...SvgLinearGradientArg) Node

SvgLinearGradient creates an SVG linearGradient element

func SvgMarker added in v0.13.0

func SvgMarker(args ...SvgMarkerArg) Node

SvgMarker creates an SVG marker element

func SvgMask added in v0.13.0

func SvgMask(args ...SvgMaskArg) Node

SvgMask creates an SVG mask element

func SvgMetadata added in v0.13.0

func SvgMetadata(args ...SvgMetadataArg) Node

SvgMetadata creates an SVG metadata element

func SvgMpath added in v0.13.0

func SvgMpath(args ...SvgMpathArg) Node

SvgMpath creates an SVG mpath element

func SvgPath added in v0.13.0

func SvgPath(args ...SvgPathArg) Node

SvgPath creates an SVG path element (self-closing)

func SvgPattern added in v0.13.0

func SvgPattern(args ...SvgPatternArg) Node

SvgPattern creates an SVG pattern element

func SvgPolygon added in v0.13.0

func SvgPolygon(args ...SvgPolygonArg) Node

SvgPolygon creates an SVG polygon element (self-closing)

func SvgPolyline added in v0.13.0

func SvgPolyline(args ...SvgPolylineArg) Node

SvgPolyline creates an SVG polyline element (self-closing)

func SvgRadialGradient added in v0.13.0

func SvgRadialGradient(args ...SvgRadialGradientArg) Node

SvgRadialGradient creates an SVG radialGradient element

func SvgRect added in v0.13.0

func SvgRect(args ...SvgRectArg) Node

SvgRect creates an SVG rect element (self-closing)

func SvgSet added in v0.13.0

func SvgSet(args ...SvgSetArg) Node

SvgSet creates an SVG set element

func SvgStop added in v0.13.0

func SvgStop(args ...SvgStopArg) Node

SvgStop creates an SVG stop element (self-closing)

func SvgSwitch added in v0.13.0

func SvgSwitch(args ...SvgSwitchArg) Node

SvgSwitch creates an SVG switch element

func SvgSymbol added in v0.13.0

func SvgSymbol(args ...SvgSymbolArg) Node

SvgSymbol creates an SVG symbol element

func SvgText

func SvgText(args ...SvgTextArg) Node

SvgText creates an SVG text element

func SvgTextPath added in v0.13.0

func SvgTextPath(args ...SvgTextPathArg) Node

SvgTextPath creates an SVG textPath element

func SvgTspan added in v0.13.0

func SvgTspan(args ...SvgTspanArg) Node

SvgTspan creates an SVG tspan element

func SvgUse added in v0.13.0

func SvgUse(args ...SvgUseArg) Node

SvgUse creates an SVG use element (self-closing)

func SvgView added in v0.13.0

func SvgView(args ...SvgViewArg) Node

SvgView creates an SVG view element

func Table

func Table(args ...TableArg) Node

func Tbody

func Tbody(args ...TbodyArg) Node

func Td

func Td(args ...TdArg) Node

func Template

func Template(args ...TemplateArg) Node

func Textarea

func Textarea(args ...TextareaArg) Node

func Tfoot

func Tfoot(args ...TfootArg) Node

func Th

func Th(args ...ThArg) Node

func Thead

func Thead(args ...TheadArg) Node

func Time

func Time(args ...TimeArg) Node

func Tr

func Tr(args ...TrArg) Node

func Track

func Track(args ...TrackArg) Node

func Ul

func Ul(args ...UlArg) Node

func Video

func Video(args ...VideoArg) Node

func (Node) CSS

func (n Node) CSS() string

func (Node) Children

func (n Node) Children() []Component

func (Node) JS

func (n Node) JS() string

func (Node) Name

func (n Node) Name() string

func (Node) WithAssets

func (n Node) WithAssets(css, js, name string) Node

type NohrefOpt added in v0.13.0

type NohrefOpt struct{}

func ANohref added in v0.13.0

func ANohref() NohrefOpt

type NomoduleOpt added in v0.13.0

type NomoduleOpt struct{}

func ANomodule added in v0.13.0

func ANomodule() NomoduleOpt

type NoresizeOpt added in v0.13.0

type NoresizeOpt struct{}

func ANoresize added in v0.13.0

func ANoresize() NoresizeOpt

type NoshadeOpt added in v0.13.0

type NoshadeOpt struct{}

func ANoshade added in v0.13.0

func ANoshade() NoshadeOpt

type NovalidateOpt

type NovalidateOpt struct{}

func ANovalidate added in v0.13.0

func ANovalidate() NovalidateOpt

type NowrapOpt added in v0.13.0

type NowrapOpt struct{}

func ANowrap added in v0.13.0

func ANowrap() NowrapOpt

type NumOctavesOpt added in v0.13.0

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

func ANumOctaves added in v0.13.0

func ANumOctaves(v string) NumOctavesOpt

type ObjectArg added in v0.13.0

type ObjectArg interface {
	// contains filtered or unexported methods
}

type ObjectAttrs added in v0.13.0

type ObjectAttrs struct {
	Global        GlobalAttrs
	Align         string
	Archive       string
	Border        string
	Classid       string
	Codebase      string
	Codetype      string
	Data          string
	Declare       bool
	Form          string
	Height        string
	Hspace        string
	Name          string
	Standby       string
	Type          string
	Typemustmatch bool
	Usemap        string
	Vspace        string
	Width         string
}

func (*ObjectAttrs) WriteAttrs added in v0.13.0

func (a *ObjectAttrs) WriteAttrs(sb *strings.Builder)

type ObjectOpt added in v0.13.0

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

func AObject added in v0.13.0

func AObject(v string) ObjectOpt

type OffsetOpt added in v0.13.0

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

func AOffset added in v0.13.0

func AOffset(v string) OffsetOpt

type OlArg

type OlArg interface {
	// contains filtered or unexported methods
}

type OlAttrs

type OlAttrs struct {
	Global   GlobalAttrs
	Compact  bool
	Reversed bool
	Start    string
	Type     string
}

func (*OlAttrs) WriteAttrs added in v0.13.0

func (a *OlAttrs) WriteAttrs(sb *strings.Builder)

type OpenOpt

type OpenOpt struct{}

func AOpen added in v0.13.0

func AOpen() OpenOpt

type OperatorOpt added in v0.13.0

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

func AOperator added in v0.13.0

func AOperator(v string) OperatorOpt

type OptgroupArg

type OptgroupArg interface {
	// contains filtered or unexported methods
}

type OptgroupAttrs

type OptgroupAttrs struct {
	Global   GlobalAttrs
	Disabled bool
	Label    string
}

func (*OptgroupAttrs) WriteAttrs added in v0.13.0

func (a *OptgroupAttrs) WriteAttrs(sb *strings.Builder)

type OptimumOpt added in v0.13.0

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

func AOptimum added in v0.13.0

func AOptimum(v string) OptimumOpt

type OptionArg

type OptionArg interface {
	// contains filtered or unexported methods
}

type OptionAttrs

type OptionAttrs struct {
	Global   GlobalAttrs
	Disabled bool
	Label    string
	Selected bool
	Value    string
}

func (*OptionAttrs) WriteAttrs added in v0.13.0

func (a *OptionAttrs) WriteAttrs(sb *strings.Builder)

type OrderOpt added in v0.13.0

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

func AOrder added in v0.13.0

func AOrder(v string) OrderOpt

type OrientOpt added in v0.13.0

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

func AOrient added in v0.13.0

func AOrient(v string) OrientOpt

type OutputArg added in v0.13.0

type OutputArg interface {
	// contains filtered or unexported methods
}

type OutputAttrs added in v0.13.0

type OutputAttrs struct {
	Global GlobalAttrs
	For    string
	Form   string
	Name   string
}

func (*OutputAttrs) WriteAttrs added in v0.13.0

func (a *OutputAttrs) WriteAttrs(sb *strings.Builder)

type PArg

type PArg interface {
	// contains filtered or unexported methods
}

type PAttrs

type PAttrs struct {
	Global GlobalAttrs
	Align  string
}

func (*PAttrs) WriteAttrs added in v0.13.0

func (a *PAttrs) WriteAttrs(sb *strings.Builder)

type ParamArg added in v0.13.0

type ParamArg interface {
	// contains filtered or unexported methods
}

type ParamAttrs added in v0.13.0

type ParamAttrs struct {
	Global    GlobalAttrs
	Name      string
	Type      string
	Value     string
	Valuetype string
}

func (*ParamAttrs) WriteAttrs added in v0.13.0

func (a *ParamAttrs) WriteAttrs(sb *strings.Builder)

type PathLengthOpt

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

func APathLength added in v0.13.0

func APathLength(v string) PathLengthOpt

type PatternContentUnitsOpt added in v0.13.0

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

func APatternContentUnits added in v0.13.0

func APatternContentUnits(v string) PatternContentUnitsOpt

type PatternOpt

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

func APattern added in v0.13.0

func APattern(v string) PatternOpt

type PatternTransformOpt added in v0.13.0

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

func APatternTransform added in v0.13.0

func APatternTransform(v string) PatternTransformOpt

type PatternUnitsOpt added in v0.13.0

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

func APatternUnits added in v0.13.0

func APatternUnits(v string) PatternUnitsOpt

type PingOpt added in v0.13.0

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

func APing added in v0.13.0

func APing(v string) PingOpt

type PlaceholderOpt

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

func APlaceholder added in v0.13.0

func APlaceholder(v string) PlaceholderOpt

type PlaysinlineOpt added in v0.13.0

type PlaysinlineOpt struct{}

func APlaysinline added in v0.13.0

func APlaysinline() PlaysinlineOpt

type PointsAtXOpt added in v0.13.0

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

func APointsAtX added in v0.13.0

func APointsAtX(v string) PointsAtXOpt

type PointsAtYOpt added in v0.13.0

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

func APointsAtY added in v0.13.0

func APointsAtY(v string) PointsAtYOpt

type PointsAtZOpt added in v0.13.0

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

func APointsAtZ added in v0.13.0

func APointsAtZ(v string) PointsAtZOpt

type PointsOpt

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

func APoints added in v0.13.0

func APoints(v string) PointsOpt

type PopovertargetOpt added in v0.13.0

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

func APopovertarget added in v0.13.0

func APopovertarget(v string) PopovertargetOpt

type PopovertargetactionOpt added in v0.13.0

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

func APopovertargetaction added in v0.13.0

func APopovertargetaction(v string) PopovertargetactionOpt

type PosterOpt

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

func APoster added in v0.13.0

func APoster(v string) PosterOpt

type PreArg

type PreArg interface {
	// contains filtered or unexported methods
}

type PreAttrs

type PreAttrs struct {
	Global GlobalAttrs
	Width  string
}

func (*PreAttrs) WriteAttrs added in v0.13.0

func (a *PreAttrs) WriteAttrs(sb *strings.Builder)

type PreloadOpt

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

func APreload added in v0.13.0

func APreload(v string) PreloadOpt

type PreserveAlphaOpt added in v0.13.0

type PreserveAlphaOpt struct{}

func APreserveAlpha added in v0.13.0

func APreserveAlpha() PreserveAlphaOpt

type PreserveAspectRatioOpt

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

func APreserveAspectRatio added in v0.13.0

func APreserveAspectRatio(v string) PreserveAspectRatioOpt

type PrimitiveUnitsOpt added in v0.13.0

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

func APrimitiveUnits added in v0.13.0

func APrimitiveUnits(v string) PrimitiveUnitsOpt

type ProfileOpt added in v0.13.0

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

func AProfile added in v0.13.0

func AProfile(v string) ProfileOpt

type ProgressArg added in v0.13.0

type ProgressArg interface {
	// contains filtered or unexported methods
}

type ProgressAttrs added in v0.13.0

type ProgressAttrs struct {
	Global GlobalAttrs
	Max    string
	Value  string
}

func (*ProgressAttrs) WriteAttrs added in v0.13.0

func (a *ProgressAttrs) WriteAttrs(sb *strings.Builder)

type PromptOpt added in v0.13.0

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

func APrompt added in v0.13.0

func APrompt(v string) PromptOpt

type QArg

type QArg interface {
	// contains filtered or unexported methods
}

type QAttrs

type QAttrs struct {
	Global GlobalAttrs
	Cite   string
}

func (*QAttrs) WriteAttrs added in v0.13.0

func (a *QAttrs) WriteAttrs(sb *strings.Builder)

type ROpt

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

func AR added in v0.13.0

func AR(v string) ROpt

type RadiusOpt added in v0.13.0

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

func ARadius added in v0.13.0

func ARadius(v string) RadiusOpt

type ReadonlyOpt

type ReadonlyOpt struct{}

func AReadonly added in v0.13.0

func AReadonly() ReadonlyOpt

type RefXOpt added in v0.13.0

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

func ARefX added in v0.13.0

func ARefX(v string) RefXOpt

type RefYOpt added in v0.13.0

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

func ARefY added in v0.13.0

func ARefY(v string) RefYOpt

type ReferrerpolicyOpt

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

func AReferrerpolicy added in v0.13.0

func AReferrerpolicy(v string) ReferrerpolicyOpt

type RelOpt

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

func ARel added in v0.13.0

func ARel(v string) RelOpt

type RepeatCountOpt added in v0.13.0

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

func ARepeatCount added in v0.13.0

func ARepeatCount(v string) RepeatCountOpt

type RepeatDurOpt added in v0.13.0

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

func ARepeatDur added in v0.13.0

func ARepeatDur(v string) RepeatDurOpt

type RequiredExtensionsOpt added in v0.13.0

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

func ARequiredExtensions added in v0.13.0

func ARequiredExtensions(v string) RequiredExtensionsOpt

type RequiredFeaturesOpt added in v0.13.0

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

func ARequiredFeatures added in v0.13.0

func ARequiredFeatures(v string) RequiredFeaturesOpt

type RequiredOpt

type RequiredOpt struct{}

func ARequired added in v0.13.0

func ARequired() RequiredOpt

type RestartOpt added in v0.13.0

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

func ARestart added in v0.13.0

func ARestart(v string) RestartOpt

type RevOpt added in v0.13.0

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

func ARev added in v0.13.0

func ARev(v string) RevOpt

type ReversedOpt

type ReversedOpt struct{}

func AReversed added in v0.13.0

func AReversed() ReversedOpt

type RotateOpt

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

func ARotate added in v0.13.0

func ARotate(v string) RotateOpt

type RowsOpt

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

func ARows added in v0.13.0

func ARows(v string) RowsOpt

type RowspanOpt

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

func ARowspan added in v0.13.0

func ARowspan(v string) RowspanOpt

type RulesOpt added in v0.13.0

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

func ARules added in v0.13.0

func ARules(v string) RulesOpt

type RxOpt

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

func ARx added in v0.13.0

func ARx(v string) RxOpt

type RyOpt

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

func ARy added in v0.13.0

func ARy(v string) RyOpt

type SandboxOpt

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

func ASandbox added in v0.13.0

func ASandbox(v string) SandboxOpt

type ScaleOpt added in v0.13.0

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

func AScale added in v0.13.0

func AScale(v string) ScaleOpt

type SchemeOpt

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

func AScheme added in v0.13.0

func AScheme(v string) SchemeOpt

type ScopeOpt

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

func AScope added in v0.13.0

func AScope(v string) ScopeOpt

type ScriptArg

type ScriptArg interface {
	// contains filtered or unexported methods
}

type ScriptAttrs

type ScriptAttrs struct {
	Global         GlobalAttrs
	Async          bool
	Blocking       string
	Charset        string
	Crossorigin    string
	Defer          bool
	Fetchpriority  string
	Integrity      string
	Language       string
	Nomodule       bool
	Referrerpolicy string
	Src            string
	Type           string
}

func (*ScriptAttrs) WriteAttrs added in v0.13.0

func (a *ScriptAttrs) WriteAttrs(sb *strings.Builder)

type ScrollingOpt added in v0.13.0

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

func AScrolling added in v0.13.0

func AScrolling(v string) ScrollingOpt

type SeedOpt added in v0.13.0

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

func ASeed added in v0.13.0

func ASeed(v string) SeedOpt

type SelectArg

type SelectArg interface {
	// contains filtered or unexported methods
}

type SelectAttrs

type SelectAttrs struct {
	Global       GlobalAttrs
	Autocomplete string
	Disabled     bool
	Form         string
	Multiple     bool
	Name         string
	Required     bool
	Size         string
}

func (*SelectAttrs) WriteAttrs added in v0.13.0

func (a *SelectAttrs) WriteAttrs(sb *strings.Builder)

type SelectedOpt

type SelectedOpt struct{}

func ASelected added in v0.13.0

func ASelected() SelectedOpt

type ShadowrootclonableOpt added in v0.13.0

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

func AShadowrootclonable added in v0.13.0

func AShadowrootclonable(v string) ShadowrootclonableOpt

type ShadowrootcustomelementregistryOpt added in v0.13.0

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

func AShadowrootcustomelementregistry added in v0.13.0

func AShadowrootcustomelementregistry(v string) ShadowrootcustomelementregistryOpt

type ShadowrootdelegatesfocusOpt added in v0.13.0

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

func AShadowrootdelegatesfocus added in v0.13.0

func AShadowrootdelegatesfocus(v string) ShadowrootdelegatesfocusOpt

type ShadowrootmodeOpt added in v0.13.0

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

func AShadowrootmode added in v0.13.0

func AShadowrootmode(v string) ShadowrootmodeOpt

type ShadowrootserializableOpt added in v0.13.0

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

func AShadowrootserializable added in v0.13.0

func AShadowrootserializable(v string) ShadowrootserializableOpt

type ShapeOpt added in v0.13.0

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

func AShape added in v0.13.0

func AShape(v string) ShapeOpt

type SizeOpt

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

func ASize added in v0.13.0

func ASize(v string) SizeOpt

type SizesOpt

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

func ASizes added in v0.13.0

func ASizes(v string) SizesOpt

type SlopeOpt added in v0.13.0

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

func ASlope added in v0.13.0

func ASlope(v string) SlopeOpt

type SlotArg added in v0.13.0

type SlotArg interface {
	// contains filtered or unexported methods
}

type SlotAttrs added in v0.13.0

type SlotAttrs struct {
	Global GlobalAttrs
	Name   string
}

func (*SlotAttrs) WriteAttrs added in v0.13.0

func (a *SlotAttrs) WriteAttrs(sb *strings.Builder)

type SourceArg

type SourceArg interface {
	// contains filtered or unexported methods
}

type SourceAttrs

type SourceAttrs struct {
	Global GlobalAttrs
	Height string
	Media  string
	Sizes  string
	Src    string
	Srcset string
	Type   string
	Width  string
}

func (*SourceAttrs) WriteAttrs added in v0.13.0

func (a *SourceAttrs) WriteAttrs(sb *strings.Builder)

type SpacingOpt added in v0.13.0

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

func ASpacing added in v0.13.0

func ASpacing(v string) SpacingOpt

type SpanOpt

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

func ASpan added in v0.13.0

func ASpan(v string) SpanOpt

type SpecularConstantOpt added in v0.13.0

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

func ASpecularConstant added in v0.13.0

func ASpecularConstant(v string) SpecularConstantOpt

type SpecularExponentOpt added in v0.13.0

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

func ASpecularExponent added in v0.13.0

func ASpecularExponent(v string) SpecularExponentOpt

type SpreadMethodOpt added in v0.13.0

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

func ASpreadMethod added in v0.13.0

func ASpreadMethod(v string) SpreadMethodOpt

type SrcOpt

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

func ASrc added in v0.13.0

func ASrc(v string) SrcOpt

type SrcdocOpt

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

func ASrcdoc added in v0.13.0

func ASrcdoc(v string) SrcdocOpt

type SrclangOpt

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

func ASrclang added in v0.13.0

func ASrclang(v string) SrclangOpt

type SrcsetOpt

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

func ASrcset added in v0.13.0

func ASrcset(v string) SrcsetOpt

type StandbyOpt added in v0.13.0

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

func AStandby added in v0.13.0

func AStandby(v string) StandbyOpt

type StartOffsetOpt added in v0.13.0

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

func AStartOffset added in v0.13.0

func AStartOffset(v string) StartOffsetOpt

type StartOpt

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

func AStart added in v0.13.0

func AStart(v string) StartOpt

type StdDeviationOpt added in v0.13.0

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

func AStdDeviation added in v0.13.0

func AStdDeviation(v string) StdDeviationOpt

type StepOpt

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

func AStep added in v0.13.0

func AStep(v string) StepOpt

type StitchTilesOpt added in v0.13.0

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

func AStitchTiles added in v0.13.0

func AStitchTiles(v string) StitchTilesOpt

type StopColorOpt added in v0.13.0

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

func AStopColor added in v0.13.0

func AStopColor(v string) StopColorOpt

type StyleArg added in v0.13.0

type StyleArg interface {
	// contains filtered or unexported methods
}

type StyleAttrs added in v0.13.0

type StyleAttrs struct {
	Global   GlobalAttrs
	Blocking string
	Media    string
	Type     string
}

func (*StyleAttrs) WriteAttrs added in v0.13.0

func (a *StyleAttrs) WriteAttrs(sb *strings.Builder)

type SummaryOpt added in v0.13.0

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

func ASummary added in v0.13.0

func ASummary(v string) SummaryOpt

type SurfaceScaleOpt added in v0.13.0

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

func ASurfaceScale added in v0.13.0

func ASurfaceScale(v string) SurfaceScaleOpt

type SvgAnimateArg added in v0.13.0

type SvgAnimateArg interface {
	// contains filtered or unexported methods
}

SvgAnimateArg interface for animate element arguments

type SvgAnimateAttrs added in v0.13.0

type SvgAnimateAttrs struct {
	GlobalAttrs
	Accumulate    string
	Additive      string
	AttributeName string
	AttributeType string
	Begin         string
	By            string
	CalcMode      string
	Dur           string
	End           string
	From          string
	KeySplines    string
	KeyTimes      string
	Max           string
	Min           string
	RepeatCount   string
	RepeatDur     string
	Restart       string
	To            string
	Values        string
}

SvgAnimateAttrs holds the attributes for the animate SVG element

func (*SvgAnimateAttrs) WriteAttrs added in v0.13.0

func (a *SvgAnimateAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgAnimateMotionArg added in v0.13.0

type SvgAnimateMotionArg interface {
	// contains filtered or unexported methods
}

SvgAnimateMotionArg interface for animateMotion element arguments

type SvgAnimateMotionAttrs added in v0.13.0

type SvgAnimateMotionAttrs struct {
	GlobalAttrs
	Accumulate  string
	Additive    string
	Begin       string
	By          string
	CalcMode    string
	Dur         string
	End         string
	From        string
	KeySplines  string
	KeyTimes    string
	Max         string
	Min         string
	RepeatCount string
	RepeatDur   string
	Restart     string
	To          string
	Values      string
}

SvgAnimateMotionAttrs holds the attributes for the animateMotion SVG element

func (*SvgAnimateMotionAttrs) WriteAttrs added in v0.13.0

func (a *SvgAnimateMotionAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgAnimateTransformArg added in v0.13.0

type SvgAnimateTransformArg interface {
	// contains filtered or unexported methods
}

SvgAnimateTransformArg interface for animateTransform element arguments

type SvgAnimateTransformAttrs added in v0.13.0

type SvgAnimateTransformAttrs struct {
	GlobalAttrs
	Accumulate    string
	Additive      string
	AttributeName string
	AttributeType string
	Begin         string
	By            string
	CalcMode      string
	Dur           string
	End           string
	From          string
	KeySplines    string
	KeyTimes      string
	Max           string
	Min           string
	RepeatCount   string
	RepeatDur     string
	Restart       string
	To            string
	Type          string
	Values        string
}

SvgAnimateTransformAttrs holds the attributes for the animateTransform SVG element

func (*SvgAnimateTransformAttrs) WriteAttrs added in v0.13.0

func (a *SvgAnimateTransformAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgArg

type SvgArg interface {
	// contains filtered or unexported methods
}

SvgArg interface for svg element arguments

type SvgAttrs

type SvgAttrs struct {
	GlobalAttrs
	Height              string
	PreserveAspectRatio string
	ViewBox             string
	Width               string
	X                   string
	Y                   string
}

SvgAttrs holds the attributes for the svg SVG element

func (*SvgAttrs) WriteAttrs added in v0.13.0

func (a *SvgAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgCircleArg added in v0.13.0

type SvgCircleArg interface {
	// contains filtered or unexported methods
}

SvgCircleArg interface for circle element arguments

type SvgCircleAttrs added in v0.13.0

type SvgCircleAttrs struct {
	GlobalAttrs
	Cx string
	Cy string
	R  string
}

SvgCircleAttrs holds the attributes for the circle SVG element

func (*SvgCircleAttrs) WriteAttrs added in v0.13.0

func (a *SvgCircleAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgClipPathArg added in v0.13.0

type SvgClipPathArg interface {
	// contains filtered or unexported methods
}

SvgClipPathArg interface for clipPath element arguments

type SvgClipPathAttrs added in v0.13.0

type SvgClipPathAttrs struct {
	GlobalAttrs
	ClipPathUnits string
}

SvgClipPathAttrs holds the attributes for the clipPath SVG element

func (*SvgClipPathAttrs) WriteAttrs added in v0.13.0

func (a *SvgClipPathAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgDefsArg added in v0.13.0

type SvgDefsArg interface {
	// contains filtered or unexported methods
}

SvgDefsArg interface for defs element arguments

type SvgDefsAttrs added in v0.13.0

type SvgDefsAttrs struct {
	GlobalAttrs
}

SvgDefsAttrs holds the attributes for the defs SVG element

func (*SvgDefsAttrs) WriteAttrs added in v0.13.0

func (a *SvgDefsAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgDescArg added in v0.13.0

type SvgDescArg interface {
	// contains filtered or unexported methods
}

SvgDescArg interface for desc element arguments

type SvgDescAttrs added in v0.13.0

type SvgDescAttrs struct {
	GlobalAttrs
}

SvgDescAttrs holds the attributes for the desc SVG element

func (*SvgDescAttrs) WriteAttrs added in v0.13.0

func (a *SvgDescAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgEllipseArg added in v0.13.0

type SvgEllipseArg interface {
	// contains filtered or unexported methods
}

SvgEllipseArg interface for ellipse element arguments

type SvgEllipseAttrs added in v0.13.0

type SvgEllipseAttrs struct {
	GlobalAttrs
	Cx string
	Cy string
	Rx string
	Ry string
}

SvgEllipseAttrs holds the attributes for the ellipse SVG element

func (*SvgEllipseAttrs) WriteAttrs added in v0.13.0

func (a *SvgEllipseAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeBlendArg added in v0.13.0

type SvgFeBlendArg interface {
	// contains filtered or unexported methods
}

SvgFeBlendArg interface for feBlend element arguments

type SvgFeBlendAttrs added in v0.13.0

type SvgFeBlendAttrs struct {
	GlobalAttrs
	In   string
	In2  string
	Mode string
}

SvgFeBlendAttrs holds the attributes for the feBlend SVG element

func (*SvgFeBlendAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeBlendAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeColorMatrixArg added in v0.13.0

type SvgFeColorMatrixArg interface {
	// contains filtered or unexported methods
}

SvgFeColorMatrixArg interface for feColorMatrix element arguments

type SvgFeColorMatrixAttrs added in v0.13.0

type SvgFeColorMatrixAttrs struct {
	GlobalAttrs
	In     string
	Type   string
	Values string
}

SvgFeColorMatrixAttrs holds the attributes for the feColorMatrix SVG element

func (*SvgFeColorMatrixAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeColorMatrixAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeComponentTransferArg added in v0.13.0

type SvgFeComponentTransferArg interface {
	// contains filtered or unexported methods
}

SvgFeComponentTransferArg interface for feComponentTransfer element arguments

type SvgFeComponentTransferAttrs added in v0.13.0

type SvgFeComponentTransferAttrs struct {
	GlobalAttrs
	In string
}

SvgFeComponentTransferAttrs holds the attributes for the feComponentTransfer SVG element

func (*SvgFeComponentTransferAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeComponentTransferAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeCompositeArg added in v0.13.0

type SvgFeCompositeArg interface {
	// contains filtered or unexported methods
}

SvgFeCompositeArg interface for feComposite element arguments

type SvgFeCompositeAttrs added in v0.13.0

type SvgFeCompositeAttrs struct {
	GlobalAttrs
	In       string
	In2      string
	K1       string
	K2       string
	K3       string
	K4       string
	Operator string
}

SvgFeCompositeAttrs holds the attributes for the feComposite SVG element

func (*SvgFeCompositeAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeCompositeAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeConvolveMatrixArg added in v0.13.0

type SvgFeConvolveMatrixArg interface {
	// contains filtered or unexported methods
}

SvgFeConvolveMatrixArg interface for feConvolveMatrix element arguments

type SvgFeConvolveMatrixAttrs added in v0.13.0

type SvgFeConvolveMatrixAttrs struct {
	GlobalAttrs
	Bias             string
	Divisor          string
	EdgeMode         string
	In               string
	KernelMatrix     string
	KernelUnitLength string
	Order            string
	PreserveAlpha    bool
	TargetX          string
	TargetY          string
}

SvgFeConvolveMatrixAttrs holds the attributes for the feConvolveMatrix SVG element

func (*SvgFeConvolveMatrixAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeConvolveMatrixAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeDiffuseLightingArg added in v0.13.0

type SvgFeDiffuseLightingArg interface {
	// contains filtered or unexported methods
}

SvgFeDiffuseLightingArg interface for feDiffuseLighting element arguments

type SvgFeDiffuseLightingAttrs added in v0.13.0

type SvgFeDiffuseLightingAttrs struct {
	GlobalAttrs
	DiffuseConstant  string
	In               string
	KernelUnitLength string
	SurfaceScale     string
}

SvgFeDiffuseLightingAttrs holds the attributes for the feDiffuseLighting SVG element

func (*SvgFeDiffuseLightingAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeDiffuseLightingAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeDisplacementMapArg added in v0.13.0

type SvgFeDisplacementMapArg interface {
	// contains filtered or unexported methods
}

SvgFeDisplacementMapArg interface for feDisplacementMap element arguments

type SvgFeDisplacementMapAttrs added in v0.13.0

type SvgFeDisplacementMapAttrs struct {
	GlobalAttrs
	In               string
	In2              string
	Scale            string
	XChannelSelector string
	YChannelSelector string
}

SvgFeDisplacementMapAttrs holds the attributes for the feDisplacementMap SVG element

func (*SvgFeDisplacementMapAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeDisplacementMapAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeDistantLightArg added in v0.13.0

type SvgFeDistantLightArg interface {
	// contains filtered or unexported methods
}

SvgFeDistantLightArg interface for feDistantLight element arguments

type SvgFeDistantLightAttrs added in v0.13.0

type SvgFeDistantLightAttrs struct {
	GlobalAttrs
	Azimuth   string
	Elevation string
}

SvgFeDistantLightAttrs holds the attributes for the feDistantLight SVG element

func (*SvgFeDistantLightAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeDistantLightAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeDropShadowArg added in v0.13.0

type SvgFeDropShadowArg interface {
	// contains filtered or unexported methods
}

SvgFeDropShadowArg interface for feDropShadow element arguments

type SvgFeDropShadowAttrs added in v0.13.0

type SvgFeDropShadowAttrs struct {
	GlobalAttrs
	Dx           string
	Dy           string
	FloodColor   string
	FloodOpacity string
	StdDeviation string
}

SvgFeDropShadowAttrs holds the attributes for the feDropShadow SVG element

func (*SvgFeDropShadowAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeDropShadowAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeFloodArg added in v0.13.0

type SvgFeFloodArg interface {
	// contains filtered or unexported methods
}

SvgFeFloodArg interface for feFlood element arguments

type SvgFeFloodAttrs added in v0.13.0

type SvgFeFloodAttrs struct {
	GlobalAttrs
	FloodColor   string
	FloodOpacity string
}

SvgFeFloodAttrs holds the attributes for the feFlood SVG element

func (*SvgFeFloodAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeFloodAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeFuncAArg added in v0.13.0

type SvgFeFuncAArg interface {
	// contains filtered or unexported methods
}

SvgFeFuncAArg interface for feFuncA element arguments

type SvgFeFuncAAttrs added in v0.13.0

type SvgFeFuncAAttrs struct {
	GlobalAttrs
	Amplitude   string
	Exponent    string
	Intercept   string
	Offset      string
	Slope       string
	TableValues string
	Type        string
}

SvgFeFuncAAttrs holds the attributes for the feFuncA SVG element

func (*SvgFeFuncAAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeFuncAAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeFuncBArg added in v0.13.0

type SvgFeFuncBArg interface {
	// contains filtered or unexported methods
}

SvgFeFuncBArg interface for feFuncB element arguments

type SvgFeFuncBAttrs added in v0.13.0

type SvgFeFuncBAttrs struct {
	GlobalAttrs
	Amplitude   string
	Exponent    string
	Intercept   string
	Offset      string
	Slope       string
	TableValues string
	Type        string
}

SvgFeFuncBAttrs holds the attributes for the feFuncB SVG element

func (*SvgFeFuncBAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeFuncBAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeFuncGArg added in v0.13.0

type SvgFeFuncGArg interface {
	// contains filtered or unexported methods
}

SvgFeFuncGArg interface for feFuncG element arguments

type SvgFeFuncGAttrs added in v0.13.0

type SvgFeFuncGAttrs struct {
	GlobalAttrs
	Amplitude   string
	Exponent    string
	Intercept   string
	Offset      string
	Slope       string
	TableValues string
	Type        string
}

SvgFeFuncGAttrs holds the attributes for the feFuncG SVG element

func (*SvgFeFuncGAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeFuncGAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeFuncRArg added in v0.13.0

type SvgFeFuncRArg interface {
	// contains filtered or unexported methods
}

SvgFeFuncRArg interface for feFuncR element arguments

type SvgFeFuncRAttrs added in v0.13.0

type SvgFeFuncRAttrs struct {
	GlobalAttrs
	Amplitude   string
	Exponent    string
	Intercept   string
	Offset      string
	Slope       string
	TableValues string
	Type        string
}

SvgFeFuncRAttrs holds the attributes for the feFuncR SVG element

func (*SvgFeFuncRAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeFuncRAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeGaussianBlurArg added in v0.13.0

type SvgFeGaussianBlurArg interface {
	// contains filtered or unexported methods
}

SvgFeGaussianBlurArg interface for feGaussianBlur element arguments

type SvgFeGaussianBlurAttrs added in v0.13.0

type SvgFeGaussianBlurAttrs struct {
	GlobalAttrs
	In           string
	StdDeviation string
}

SvgFeGaussianBlurAttrs holds the attributes for the feGaussianBlur SVG element

func (*SvgFeGaussianBlurAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeGaussianBlurAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeImageArg added in v0.13.0

type SvgFeImageArg interface {
	// contains filtered or unexported methods
}

SvgFeImageArg interface for feImage element arguments

type SvgFeImageAttrs added in v0.13.0

type SvgFeImageAttrs struct {
	GlobalAttrs
	ExternalResourcesRequired bool
	Href                      string
	PreserveAspectRatio       string
}

SvgFeImageAttrs holds the attributes for the feImage SVG element

func (*SvgFeImageAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeImageAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeMergeArg added in v0.13.0

type SvgFeMergeArg interface {
	// contains filtered or unexported methods
}

SvgFeMergeArg interface for feMerge element arguments

type SvgFeMergeAttrs added in v0.13.0

type SvgFeMergeAttrs struct {
	GlobalAttrs
}

SvgFeMergeAttrs holds the attributes for the feMerge SVG element

func (*SvgFeMergeAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeMergeAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeMergeNodeArg added in v0.13.0

type SvgFeMergeNodeArg interface {
	// contains filtered or unexported methods
}

SvgFeMergeNodeArg interface for feMergeNode element arguments

type SvgFeMergeNodeAttrs added in v0.13.0

type SvgFeMergeNodeAttrs struct {
	GlobalAttrs
	In string
}

SvgFeMergeNodeAttrs holds the attributes for the feMergeNode SVG element

func (*SvgFeMergeNodeAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeMergeNodeAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeMorphologyArg added in v0.13.0

type SvgFeMorphologyArg interface {
	// contains filtered or unexported methods
}

SvgFeMorphologyArg interface for feMorphology element arguments

type SvgFeMorphologyAttrs added in v0.13.0

type SvgFeMorphologyAttrs struct {
	GlobalAttrs
	In       string
	Operator string
	Radius   string
}

SvgFeMorphologyAttrs holds the attributes for the feMorphology SVG element

func (*SvgFeMorphologyAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeMorphologyAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeOffsetArg added in v0.13.0

type SvgFeOffsetArg interface {
	// contains filtered or unexported methods
}

SvgFeOffsetArg interface for feOffset element arguments

type SvgFeOffsetAttrs added in v0.13.0

type SvgFeOffsetAttrs struct {
	GlobalAttrs
	Dx string
	Dy string
}

SvgFeOffsetAttrs holds the attributes for the feOffset SVG element

func (*SvgFeOffsetAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeOffsetAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFePointLightArg added in v0.13.0

type SvgFePointLightArg interface {
	// contains filtered or unexported methods
}

SvgFePointLightArg interface for fePointLight element arguments

type SvgFePointLightAttrs added in v0.13.0

type SvgFePointLightAttrs struct {
	GlobalAttrs
	X string
	Y string
	Z string
}

SvgFePointLightAttrs holds the attributes for the fePointLight SVG element

func (*SvgFePointLightAttrs) WriteAttrs added in v0.13.0

func (a *SvgFePointLightAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeSpecularLightingArg added in v0.13.0

type SvgFeSpecularLightingArg interface {
	// contains filtered or unexported methods
}

SvgFeSpecularLightingArg interface for feSpecularLighting element arguments

type SvgFeSpecularLightingAttrs added in v0.13.0

type SvgFeSpecularLightingAttrs struct {
	GlobalAttrs
	In               string
	KernelUnitLength string
	SpecularConstant string
	SpecularExponent string
	SurfaceScale     string
}

SvgFeSpecularLightingAttrs holds the attributes for the feSpecularLighting SVG element

func (*SvgFeSpecularLightingAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeSpecularLightingAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeSpotLightArg added in v0.13.0

type SvgFeSpotLightArg interface {
	// contains filtered or unexported methods
}

SvgFeSpotLightArg interface for feSpotLight element arguments

type SvgFeSpotLightAttrs added in v0.13.0

type SvgFeSpotLightAttrs struct {
	GlobalAttrs
	LimitingConeAngle string
	PointsAtX         string
	PointsAtY         string
	PointsAtZ         string
	SpecularExponent  string
	X                 string
	Y                 string
	Z                 string
}

SvgFeSpotLightAttrs holds the attributes for the feSpotLight SVG element

func (*SvgFeSpotLightAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeSpotLightAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeTileArg added in v0.13.0

type SvgFeTileArg interface {
	// contains filtered or unexported methods
}

SvgFeTileArg interface for feTile element arguments

type SvgFeTileAttrs added in v0.13.0

type SvgFeTileAttrs struct {
	GlobalAttrs
	In string
}

SvgFeTileAttrs holds the attributes for the feTile SVG element

func (*SvgFeTileAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeTileAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFeTurbulenceArg added in v0.13.0

type SvgFeTurbulenceArg interface {
	// contains filtered or unexported methods
}

SvgFeTurbulenceArg interface for feTurbulence element arguments

type SvgFeTurbulenceAttrs added in v0.13.0

type SvgFeTurbulenceAttrs struct {
	GlobalAttrs
	BaseFrequency string
	NumOctaves    string
	Seed          string
	StitchTiles   string
	Type          string
}

SvgFeTurbulenceAttrs holds the attributes for the feTurbulence SVG element

func (*SvgFeTurbulenceAttrs) WriteAttrs added in v0.13.0

func (a *SvgFeTurbulenceAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgFilterArg added in v0.13.0

type SvgFilterArg interface {
	// contains filtered or unexported methods
}

SvgFilterArg interface for filter element arguments

type SvgFilterAttrs added in v0.13.0

type SvgFilterAttrs struct {
	GlobalAttrs
	FilterUnits    string
	Height         string
	PrimitiveUnits string
	Width          string
	X              string
	Y              string
}

SvgFilterAttrs holds the attributes for the filter SVG element

func (*SvgFilterAttrs) WriteAttrs added in v0.13.0

func (a *SvgFilterAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgForeignObjectArg added in v0.13.0

type SvgForeignObjectArg interface {
	// contains filtered or unexported methods
}

SvgForeignObjectArg interface for foreignObject element arguments

type SvgForeignObjectAttrs added in v0.13.0

type SvgForeignObjectAttrs struct {
	GlobalAttrs
	Height             string
	RequiredExtensions string
	RequiredFeatures   string
	SystemLanguage     string
	Width              string
	X                  string
	Y                  string
}

SvgForeignObjectAttrs holds the attributes for the foreignObject SVG element

func (*SvgForeignObjectAttrs) WriteAttrs added in v0.13.0

func (a *SvgForeignObjectAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgGArg added in v0.13.0

type SvgGArg interface {
	// contains filtered or unexported methods
}

SvgGArg interface for g element arguments

type SvgGAttrs added in v0.13.0

type SvgGAttrs struct {
	GlobalAttrs
	RequiredExtensions string
	RequiredFeatures   string
	SystemLanguage     string
}

SvgGAttrs holds the attributes for the g SVG element

func (*SvgGAttrs) WriteAttrs added in v0.13.0

func (a *SvgGAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgImageArg added in v0.13.0

type SvgImageArg interface {
	// contains filtered or unexported methods
}

SvgImageArg interface for image element arguments

type SvgImageAttrs added in v0.13.0

type SvgImageAttrs struct {
	GlobalAttrs
	Height              string
	Href                string
	PreserveAspectRatio string
	Width               string
	X                   string
	Y                   string
}

SvgImageAttrs holds the attributes for the image SVG element

func (*SvgImageAttrs) WriteAttrs added in v0.13.0

func (a *SvgImageAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgLineArg added in v0.13.0

type SvgLineArg interface {
	// contains filtered or unexported methods
}

SvgLineArg interface for line element arguments

type SvgLineAttrs added in v0.13.0

type SvgLineAttrs struct {
	GlobalAttrs
	X1 string
	X2 string
	Y1 string
	Y2 string
}

SvgLineAttrs holds the attributes for the line SVG element

func (*SvgLineAttrs) WriteAttrs added in v0.13.0

func (a *SvgLineAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgLinearGradientArg added in v0.13.0

type SvgLinearGradientArg interface {
	// contains filtered or unexported methods
}

SvgLinearGradientArg interface for linearGradient element arguments

type SvgLinearGradientAttrs added in v0.13.0

type SvgLinearGradientAttrs struct {
	GlobalAttrs
	GradientTransform string
	GradientUnits     string
	SpreadMethod      string
	X1                string
	X2                string
	Y1                string
	Y2                string
}

SvgLinearGradientAttrs holds the attributes for the linearGradient SVG element

func (*SvgLinearGradientAttrs) WriteAttrs added in v0.13.0

func (a *SvgLinearGradientAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgMarkerArg added in v0.13.0

type SvgMarkerArg interface {
	// contains filtered or unexported methods
}

SvgMarkerArg interface for marker element arguments

type SvgMarkerAttrs added in v0.13.0

type SvgMarkerAttrs struct {
	GlobalAttrs
	MarkerHeight string
	MarkerUnits  string
	MarkerWidth  string
	Orient       string
	RefX         string
	RefY         string
	ViewBox      string
}

SvgMarkerAttrs holds the attributes for the marker SVG element

func (*SvgMarkerAttrs) WriteAttrs added in v0.13.0

func (a *SvgMarkerAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgMaskArg added in v0.13.0

type SvgMaskArg interface {
	// contains filtered or unexported methods
}

SvgMaskArg interface for mask element arguments

type SvgMaskAttrs added in v0.13.0

type SvgMaskAttrs struct {
	GlobalAttrs
	Height           string
	MaskContentUnits string
	MaskUnits        string
	Width            string
	X                string
	Y                string
}

SvgMaskAttrs holds the attributes for the mask SVG element

func (*SvgMaskAttrs) WriteAttrs added in v0.13.0

func (a *SvgMaskAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgMetadataArg added in v0.13.0

type SvgMetadataArg interface {
	// contains filtered or unexported methods
}

SvgMetadataArg interface for metadata element arguments

type SvgMetadataAttrs added in v0.13.0

type SvgMetadataAttrs struct {
	GlobalAttrs
	RequiredExtensions string
	RequiredFeatures   string
	SystemLanguage     string
}

SvgMetadataAttrs holds the attributes for the metadata SVG element

func (*SvgMetadataAttrs) WriteAttrs added in v0.13.0

func (a *SvgMetadataAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgMpathArg added in v0.13.0

type SvgMpathArg interface {
	// contains filtered or unexported methods
}

SvgMpathArg interface for mpath element arguments

type SvgMpathAttrs added in v0.13.0

type SvgMpathAttrs struct {
	GlobalAttrs
	Href string
}

SvgMpathAttrs holds the attributes for the mpath SVG element

func (*SvgMpathAttrs) WriteAttrs added in v0.13.0

func (a *SvgMpathAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgPathArg added in v0.13.0

type SvgPathArg interface {
	// contains filtered or unexported methods
}

SvgPathArg interface for path element arguments

type SvgPathAttrs added in v0.13.0

type SvgPathAttrs struct {
	GlobalAttrs
	D           string
	FillOpacity string
	PathLength  string
}

SvgPathAttrs holds the attributes for the path SVG element

func (*SvgPathAttrs) WriteAttrs added in v0.13.0

func (a *SvgPathAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgPatternArg added in v0.13.0

type SvgPatternArg interface {
	// contains filtered or unexported methods
}

SvgPatternArg interface for pattern element arguments

type SvgPatternAttrs added in v0.13.0

type SvgPatternAttrs struct {
	GlobalAttrs
	Height              string
	Href                string
	PatternContentUnits string
	PatternTransform    string
	PatternUnits        string
	Width               string
	X                   string
	Y                   string
}

SvgPatternAttrs holds the attributes for the pattern SVG element

func (*SvgPatternAttrs) WriteAttrs added in v0.13.0

func (a *SvgPatternAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgPolygonArg added in v0.13.0

type SvgPolygonArg interface {
	// contains filtered or unexported methods
}

SvgPolygonArg interface for polygon element arguments

type SvgPolygonAttrs added in v0.13.0

type SvgPolygonAttrs struct {
	GlobalAttrs
	Points string
}

SvgPolygonAttrs holds the attributes for the polygon SVG element

func (*SvgPolygonAttrs) WriteAttrs added in v0.13.0

func (a *SvgPolygonAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgPolylineArg added in v0.13.0

type SvgPolylineArg interface {
	// contains filtered or unexported methods
}

SvgPolylineArg interface for polyline element arguments

type SvgPolylineAttrs added in v0.13.0

type SvgPolylineAttrs struct {
	GlobalAttrs
	Points string
}

SvgPolylineAttrs holds the attributes for the polyline SVG element

func (*SvgPolylineAttrs) WriteAttrs added in v0.13.0

func (a *SvgPolylineAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgRadialGradientArg added in v0.13.0

type SvgRadialGradientArg interface {
	// contains filtered or unexported methods
}

SvgRadialGradientArg interface for radialGradient element arguments

type SvgRadialGradientAttrs added in v0.13.0

type SvgRadialGradientAttrs struct {
	GlobalAttrs
	Cx                string
	Cy                string
	Fx                string
	Fy                string
	GradientTransform string
	GradientUnits     string
	R                 string
}

SvgRadialGradientAttrs holds the attributes for the radialGradient SVG element

func (*SvgRadialGradientAttrs) WriteAttrs added in v0.13.0

func (a *SvgRadialGradientAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgRectArg added in v0.13.0

type SvgRectArg interface {
	// contains filtered or unexported methods
}

SvgRectArg interface for rect element arguments

type SvgRectAttrs added in v0.13.0

type SvgRectAttrs struct {
	GlobalAttrs
	Height string
	Rx     string
	Ry     string
	Width  string
	X      string
	Y      string
}

SvgRectAttrs holds the attributes for the rect SVG element

func (*SvgRectAttrs) WriteAttrs added in v0.13.0

func (a *SvgRectAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgSetArg added in v0.13.0

type SvgSetArg interface {
	// contains filtered or unexported methods
}

SvgSetArg interface for set element arguments

type SvgSetAttrs added in v0.13.0

type SvgSetAttrs struct {
	GlobalAttrs
	AttributeName string
	AttributeType string
	Begin         string
	Dur           string
	End           string
	Max           string
	Min           string
	RepeatCount   string
	RepeatDur     string
	Restart       string
	To            string
}

SvgSetAttrs holds the attributes for the set SVG element

func (*SvgSetAttrs) WriteAttrs added in v0.13.0

func (a *SvgSetAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgStopArg added in v0.13.0

type SvgStopArg interface {
	// contains filtered or unexported methods
}

SvgStopArg interface for stop element arguments

type SvgStopAttrs added in v0.13.0

type SvgStopAttrs struct {
	GlobalAttrs
	Offset    string
	StopColor string
}

SvgStopAttrs holds the attributes for the stop SVG element

func (*SvgStopAttrs) WriteAttrs added in v0.13.0

func (a *SvgStopAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgSwitchArg added in v0.13.0

type SvgSwitchArg interface {
	// contains filtered or unexported methods
}

SvgSwitchArg interface for switch element arguments

type SvgSwitchAttrs added in v0.13.0

type SvgSwitchAttrs struct {
	GlobalAttrs
	RequiredExtensions string
	RequiredFeatures   string
	SystemLanguage     string
}

SvgSwitchAttrs holds the attributes for the switch SVG element

func (*SvgSwitchAttrs) WriteAttrs added in v0.13.0

func (a *SvgSwitchAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgSymbolArg added in v0.13.0

type SvgSymbolArg interface {
	// contains filtered or unexported methods
}

SvgSymbolArg interface for symbol element arguments

type SvgSymbolAttrs added in v0.13.0

type SvgSymbolAttrs struct {
	GlobalAttrs
	PreserveAspectRatio string
}

SvgSymbolAttrs holds the attributes for the symbol SVG element

func (*SvgSymbolAttrs) WriteAttrs added in v0.13.0

func (a *SvgSymbolAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgTextArg

type SvgTextArg interface {
	// contains filtered or unexported methods
}

SvgTextArg interface for text element arguments

type SvgTextAttrs

type SvgTextAttrs struct {
	GlobalAttrs
	Dx           string
	Dy           string
	LengthAdjust string
	Rotate       string
	TextLength   string
	X            string
	Y            string
}

SvgTextAttrs holds the attributes for the text SVG element

func (*SvgTextAttrs) WriteAttrs added in v0.13.0

func (a *SvgTextAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgTextPathArg added in v0.13.0

type SvgTextPathArg interface {
	// contains filtered or unexported methods
}

SvgTextPathArg interface for textPath element arguments

type SvgTextPathAttrs added in v0.13.0

type SvgTextPathAttrs struct {
	GlobalAttrs
	Href        string
	Method      string
	Spacing     string
	StartOffset string
}

SvgTextPathAttrs holds the attributes for the textPath SVG element

func (*SvgTextPathAttrs) WriteAttrs added in v0.13.0

func (a *SvgTextPathAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgTspanArg added in v0.13.0

type SvgTspanArg interface {
	// contains filtered or unexported methods
}

SvgTspanArg interface for tspan element arguments

type SvgTspanAttrs added in v0.13.0

type SvgTspanAttrs struct {
	GlobalAttrs
	Dx     string
	Dy     string
	Rotate string
	X      string
	Y      string
}

SvgTspanAttrs holds the attributes for the tspan SVG element

func (*SvgTspanAttrs) WriteAttrs added in v0.13.0

func (a *SvgTspanAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgUseArg added in v0.13.0

type SvgUseArg interface {
	// contains filtered or unexported methods
}

SvgUseArg interface for use element arguments

type SvgUseAttrs added in v0.13.0

type SvgUseAttrs struct {
	GlobalAttrs
	Height string
	Href   string
	Width  string
	X      string
	Y      string
}

SvgUseAttrs holds the attributes for the use SVG element

func (*SvgUseAttrs) WriteAttrs added in v0.13.0

func (a *SvgUseAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SvgViewArg added in v0.13.0

type SvgViewArg interface {
	// contains filtered or unexported methods
}

SvgViewArg interface for view element arguments

type SvgViewAttrs added in v0.13.0

type SvgViewAttrs struct {
	GlobalAttrs
	ViewBox string
}

SvgViewAttrs holds the attributes for the view SVG element

func (*SvgViewAttrs) WriteAttrs added in v0.13.0

func (a *SvgViewAttrs) WriteAttrs(sb *strings.Builder)

WriteAttrs writes the SVG attributes to the string builder

type SystemLanguageOpt added in v0.13.0

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

func ASystemLanguage added in v0.13.0

func ASystemLanguage(v string) SystemLanguageOpt

type TableArg

type TableArg interface {
	// contains filtered or unexported methods
}

type TableAttrs

type TableAttrs struct {
	Global      GlobalAttrs
	Align       string
	Bgcolor     string
	Border      string
	Cellpadding string
	Cellspacing string
	Frame       string
	Rules       string
	Summary     string
	Width       string
}

func (*TableAttrs) WriteAttrs added in v0.13.0

func (a *TableAttrs) WriteAttrs(sb *strings.Builder)

type TableValuesOpt added in v0.13.0

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

func ATableValues added in v0.13.0

func ATableValues(v string) TableValuesOpt

type TargetOpt

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

func ATarget

func ATarget(v string) TargetOpt

type TargetXOpt added in v0.13.0

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

func ATargetX added in v0.13.0

func ATargetX(v string) TargetXOpt

type TargetYOpt added in v0.13.0

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

func ATargetY added in v0.13.0

func ATargetY(v string) TargetYOpt

type TbodyArg

type TbodyArg interface {
	// contains filtered or unexported methods
}

type TbodyAttrs

type TbodyAttrs struct {
	Global  GlobalAttrs
	Align   string
	Char    string
	Charoff string
	Valign  string
}

func (*TbodyAttrs) WriteAttrs added in v0.13.0

func (a *TbodyAttrs) WriteAttrs(sb *strings.Builder)

type TdArg

type TdArg interface {
	// contains filtered or unexported methods
}

type TdAttrs

type TdAttrs struct {
	Global  GlobalAttrs
	Abbr    string
	Align   string
	Axis    string
	Bgcolor string
	Char    string
	Charoff string
	Colspan string
	Headers string
	Height  string
	Nowrap  bool
	Rowspan string
	Scope   string
	Valign  string
	Width   string
}

func (*TdAttrs) WriteAttrs added in v0.13.0

func (a *TdAttrs) WriteAttrs(sb *strings.Builder)

type TemplateArg

type TemplateArg interface {
	// contains filtered or unexported methods
}

type TemplateAttrs

type TemplateAttrs struct {
	Global                          GlobalAttrs
	Shadowrootclonable              string
	Shadowrootcustomelementregistry string
	Shadowrootdelegatesfocus        string
	Shadowrootmode                  string
	Shadowrootserializable          string
}

func (*TemplateAttrs) WriteAttrs added in v0.13.0

func (a *TemplateAttrs) WriteAttrs(sb *strings.Builder)

type TextLengthOpt

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

func ATextLength added in v0.13.0

func ATextLength(v string) TextLengthOpt

type TextNode

type TextNode string

type TextOpt added in v0.13.0

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

func AText added in v0.13.0

func AText(v string) TextOpt

type TextareaArg

type TextareaArg interface {
	// contains filtered or unexported methods
}

type TextareaAttrs

type TextareaAttrs struct {
	Global       GlobalAttrs
	Autocomplete string
	Cols         string
	Dirname      string
	Disabled     bool
	Form         string
	Maxlength    string
	Minlength    string
	Name         string
	Placeholder  string
	Readonly     bool
	Required     bool
	Rows         string
	Wrap         string
}

func (*TextareaAttrs) WriteAttrs added in v0.13.0

func (a *TextareaAttrs) WriteAttrs(sb *strings.Builder)

type TfootArg

type TfootArg interface {
	// contains filtered or unexported methods
}

type TfootAttrs

type TfootAttrs struct {
	Global  GlobalAttrs
	Align   string
	Char    string
	Charoff string
	Valign  string
}

func (*TfootAttrs) WriteAttrs added in v0.13.0

func (a *TfootAttrs) WriteAttrs(sb *strings.Builder)

type ThArg

type ThArg interface {
	// contains filtered or unexported methods
}

type ThAttrs

type ThAttrs struct {
	Global  GlobalAttrs
	Abbr    string
	Align   string
	Axis    string
	Bgcolor string
	Char    string
	Charoff string
	Colspan string
	Headers string
	Height  string
	Nowrap  bool
	Rowspan string
	Scope   string
	Valign  string
	Width   string
}

func (*ThAttrs) WriteAttrs added in v0.13.0

func (a *ThAttrs) WriteAttrs(sb *strings.Builder)

type TheadArg

type TheadArg interface {
	// contains filtered or unexported methods
}

type TheadAttrs

type TheadAttrs struct {
	Global  GlobalAttrs
	Align   string
	Char    string
	Charoff string
	Valign  string
}

func (*TheadAttrs) WriteAttrs added in v0.13.0

func (a *TheadAttrs) WriteAttrs(sb *strings.Builder)

type TimeArg

type TimeArg interface {
	// contains filtered or unexported methods
}

type TimeAttrs

type TimeAttrs struct {
	Global   GlobalAttrs
	Datetime string
}

func (*TimeAttrs) WriteAttrs added in v0.13.0

func (a *TimeAttrs) WriteAttrs(sb *strings.Builder)

type ToOpt added in v0.13.0

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

func ATo added in v0.13.0

func ATo(v string) ToOpt

type TrArg

type TrArg interface {
	// contains filtered or unexported methods
}

type TrAttrs

type TrAttrs struct {
	Global  GlobalAttrs
	Align   string
	Bgcolor string
	Char    string
	Charoff string
	Valign  string
}

func (*TrAttrs) WriteAttrs added in v0.13.0

func (a *TrAttrs) WriteAttrs(sb *strings.Builder)

type TrackArg

type TrackArg interface {
	// contains filtered or unexported methods
}

type TrackAttrs

type TrackAttrs struct {
	Global  GlobalAttrs
	Default bool
	Kind    string
	Label   string
	Src     string
	Srclang string
}

func (*TrackAttrs) WriteAttrs added in v0.13.0

func (a *TrackAttrs) WriteAttrs(sb *strings.Builder)

type TxtOpt

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

func T

func T(s string) TxtOpt

T is an alias for Text to reduce verbosity

func Text

func Text(s string) TxtOpt

func (TxtOpt) String added in v0.13.0

func (t TxtOpt) String() string

String returns the text content

type TypeOpt

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

func AType added in v0.13.0

func AType(v string) TypeOpt

type TypemustmatchOpt added in v0.13.0

type TypemustmatchOpt struct{}

func ATypemustmatch added in v0.13.0

func ATypemustmatch() TypemustmatchOpt

type UlArg

type UlArg interface {
	// contains filtered or unexported methods
}

type UlAttrs

type UlAttrs struct {
	Global  GlobalAttrs
	Compact bool
	Type    string
}

func (*UlAttrs) WriteAttrs added in v0.13.0

func (a *UlAttrs) WriteAttrs(sb *strings.Builder)

type UnsafeTextNode

type UnsafeTextNode string

type UnsafeTxtOpt

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

func UnsafeText

func UnsafeText(s string) UnsafeTxtOpt

func (UnsafeTxtOpt) String added in v0.13.0

func (t UnsafeTxtOpt) String() string

String returns the unsafe text content

type UsemapOpt added in v0.13.0

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

func AUsemap added in v0.13.0

func AUsemap(v string) UsemapOpt

type ValignOpt added in v0.13.0

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

func AValign added in v0.13.0

func AValign(v string) ValignOpt

type ValueOpt

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

func AValue added in v0.13.0

func AValue(v string) ValueOpt

type ValuesOpt added in v0.13.0

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

func AValues added in v0.13.0

func AValues(v string) ValuesOpt

type ValuetypeOpt added in v0.13.0

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

func AValuetype added in v0.13.0

func AValuetype(v string) ValuetypeOpt

type VersionOpt

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

func AVersion added in v0.13.0

func AVersion(v string) VersionOpt

type VideoArg

type VideoArg interface {
	// contains filtered or unexported methods
}

type VideoAttrs

type VideoAttrs struct {
	Global      GlobalAttrs
	Autoplay    bool
	Controls    bool
	Crossorigin string
	Height      string
	Loop        bool
	Muted       bool
	Playsinline bool
	Poster      string
	Preload     string
	Src         string
	Width       string
}

func (*VideoAttrs) WriteAttrs added in v0.13.0

func (a *VideoAttrs) WriteAttrs(sb *strings.Builder)

type ViewBoxOpt

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

func AViewBox added in v0.13.0

func AViewBox(v string) ViewBoxOpt

type VlinkOpt added in v0.13.0

type VlinkOpt struct {
	// contains filtered or unexported fields
}
func AVlink(v string) VlinkOpt

type VspaceOpt added in v0.13.0

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

func AVspace added in v0.13.0

func AVspace(v string) VspaceOpt

type WidthOpt

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

func AWidth added in v0.13.0

func AWidth(v string) WidthOpt

type WrapOpt

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

func AWrap added in v0.13.0

func AWrap(v string) WrapOpt

type X1Opt

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

func AX1 added in v0.13.0

func AX1(v string) X1Opt

type X2Opt

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

func AX2 added in v0.13.0

func AX2(v string) X2Opt

type XChannelSelectorOpt added in v0.13.0

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

func AXChannelSelector added in v0.13.0

func AXChannelSelector(v string) XChannelSelectorOpt

type XOpt added in v0.13.0

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

func AX added in v0.13.0

func AX(v string) XOpt

type Y1Opt

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

func AY1 added in v0.13.0

func AY1(v string) Y1Opt

type Y2Opt

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

func AY2 added in v0.13.0

func AY2(v string) Y2Opt

type YChannelSelectorOpt added in v0.13.0

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

func AYChannelSelector added in v0.13.0

func AYChannelSelector(v string) YChannelSelectorOpt

type YOpt added in v0.13.0

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

func AY added in v0.13.0

func AY(v string) YOpt

type ZOpt added in v0.13.0

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

func AZ added in v0.13.0

func AZ(v string) ZOpt

Source Files

Jump to

Keyboard shortcuts

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