html

package module
v0.12.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.12.0

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

func BoolAttr added in v0.12.0

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

func Render

func Render(c Component) string

func WriteGlobal added in v0.12.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
	Download       string
	Href           string
	Hreflang       string
	Ping           string
	Referrerpolicy string
	Rel            string
	Target         string
	Type           string
}

func (*AAttrs) WriteAttrs added in v0.12.0

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

type AbbrArg

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

type AbbrAttrs

type AbbrAttrs struct {
	Global GlobalAttrs
}

func (*AbbrAttrs) WriteAttrs added in v0.12.0

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

type AbbrOpt added in v0.12.0

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

func AAbbr added in v0.12.0

func AAbbr(v string) AbbrOpt

type AcceptOpt

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

func AAccept added in v0.12.0

func AAccept(v string) AcceptOpt

type AcceptcharsetOpt added in v0.12.0

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

func AAcceptcharset added in v0.12.0

func AAcceptcharset(v string) AcceptcharsetOpt

type AccumulateOpt added in v0.12.0

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

func AAccumulate added in v0.12.0

func AAccumulate(v string) AccumulateOpt

type ActionOpt

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

func AAction added in v0.12.0

func AAction(v string) ActionOpt

type AdditiveOpt added in v0.12.0

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

func AAdditive added in v0.12.0

func AAdditive(v string) AdditiveOpt

type AddressArg

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

type AddressAttrs

type AddressAttrs struct {
	Global GlobalAttrs
}

func (*AddressAttrs) WriteAttrs added in v0.12.0

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

type AllowOpt

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

func AAllow added in v0.12.0

func AAllow(v string) AllowOpt

type AllowfullscreenOpt

type AllowfullscreenOpt struct{}

func AAllowfullscreen added in v0.12.0

func AAllowfullscreen() AllowfullscreenOpt

type AllowpaymentrequestOpt added in v0.12.0

type AllowpaymentrequestOpt struct{}

func AAllowpaymentrequest added in v0.12.0

func AAllowpaymentrequest() AllowpaymentrequestOpt

type AltOpt

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

func AAlt added in v0.12.0

func AAlt(v string) AltOpt

type AmplitudeOpt added in v0.12.0

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

func AAmplitude added in v0.12.0

func AAmplitude(v string) AmplitudeOpt

type AreaArg added in v0.12.0

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

type AreaAttrs added in v0.12.0

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

func (*AreaAttrs) WriteAttrs added in v0.12.0

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

type ArticleArg

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

type ArticleAttrs

type ArticleAttrs struct {
	Global GlobalAttrs
}

func (*ArticleAttrs) WriteAttrs added in v0.12.0

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

type AsOpt added in v0.12.0

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

func AAs added in v0.12.0

func AAs(v string) AsOpt

type AsideArg

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

type AsideAttrs

type AsideAttrs struct {
	Global GlobalAttrs
}

func (*AsideAttrs) WriteAttrs added in v0.12.0

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

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.12.0

func AAsync() AsyncOpt

type AttrWriter added in v0.12.0

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

type AttributeNameOpt added in v0.12.0

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

func AAttributeName added in v0.12.0

func AAttributeName(v string) AttributeNameOpt

type AttributeTypeOpt added in v0.12.0

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

func AAttributeType added in v0.12.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
	Loop     bool
	Muted    bool
	Preload  string
	Src      string
}

func (*AudioAttrs) WriteAttrs added in v0.12.0

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

type AutocapitalizeOpt added in v0.12.0

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

func AAutocapitalize added in v0.12.0

func AAutocapitalize(v string) AutocapitalizeOpt

type AutocompleteOpt

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

func AAutocomplete added in v0.12.0

func AAutocomplete(v string) AutocompleteOpt

type AutofocusOpt added in v0.12.0

type AutofocusOpt struct{}

func AAutofocus added in v0.12.0

func AAutofocus() AutofocusOpt

type AutoplayOpt

type AutoplayOpt struct{}

func AAutoplay added in v0.12.0

func AAutoplay() AutoplayOpt

type AzimuthOpt added in v0.12.0

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

func AAzimuth added in v0.12.0

func AAzimuth(v string) AzimuthOpt

type BArg

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

type BAttrs

type BAttrs struct {
	Global GlobalAttrs
}

func (*BAttrs) WriteAttrs added in v0.12.0

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

type BaseArg added in v0.12.0

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

type BaseAttrs added in v0.12.0

type BaseAttrs struct {
	Global GlobalAttrs
	Href   string
	Target string
}

func (*BaseAttrs) WriteAttrs added in v0.12.0

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

type BaseFrequencyOpt added in v0.12.0

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

func ABaseFrequency added in v0.12.0

func ABaseFrequency(v string) BaseFrequencyOpt

type BdiArg added in v0.12.0

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

type BdiAttrs added in v0.12.0

type BdiAttrs struct {
	Global GlobalAttrs
}

func (*BdiAttrs) WriteAttrs added in v0.12.0

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

type BdoArg added in v0.12.0

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

type BdoAttrs added in v0.12.0

type BdoAttrs struct {
	Global GlobalAttrs
}

func (*BdoAttrs) WriteAttrs added in v0.12.0

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

type BeginOpt added in v0.12.0

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

func ABegin added in v0.12.0

func ABegin(v string) BeginOpt

type BiasOpt added in v0.12.0

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

func ABias added in v0.12.0

func ABias(v string) BiasOpt

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.12.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
}

func (*BodyAttrs) WriteAttrs added in v0.12.0

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

type BorderOpt added in v0.12.0

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

func ABorder added in v0.12.0

func ABorder(v string) BorderOpt

type BrArg

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

type BrAttrs

type BrAttrs struct {
	Global GlobalAttrs
}

func (*BrAttrs) WriteAttrs added in v0.12.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
	Autofocus           bool
	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.12.0

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

type ByOpt added in v0.12.0

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

func ABy added in v0.12.0

func ABy(v string) ByOpt

type CalcModeOpt added in v0.12.0

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

func ACalcMode added in v0.12.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.12.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
}

func (*CaptionAttrs) WriteAttrs added in v0.12.0

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

type CharsetOpt

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

func ACharset added in v0.12.0

func ACharset(v string) CharsetOpt

type CheckedOpt

type CheckedOpt struct{}

func AChecked added in v0.12.0

func AChecked() CheckedOpt

type ChildOpt

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

func C added in v0.12.0

func C(c Component) ChildOpt

func Child

func Child(c Component) ChildOpt

func F added in v0.12.0

func F(children ...Component) ChildOpt

F is an alias for Fragment to reduce verbosity

func Fragment added in v0.12.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 CiteArg added in v0.12.0

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

type CiteAttrs added in v0.12.0

type CiteAttrs struct {
	Global GlobalAttrs
}

func (*CiteAttrs) WriteAttrs added in v0.12.0

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

type CiteOpt

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

func ACite added in v0.12.0

func ACite(v string) CiteOpt

type ClipPathUnitsOpt added in v0.12.0

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

func AClipPathUnits added in v0.12.0

func AClipPathUnits(v string) ClipPathUnitsOpt

type CodeArg

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

type CodeAttrs

type CodeAttrs struct {
	Global GlobalAttrs
}

func (*CodeAttrs) WriteAttrs added in v0.12.0

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

type ColArg

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

type ColAttrs

type ColAttrs struct {
	Global GlobalAttrs
	Span   string
}

func (*ColAttrs) WriteAttrs added in v0.12.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
	Span   string
}

func (*ColgroupAttrs) WriteAttrs added in v0.12.0

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

type ColsOpt

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

func ACols added in v0.12.0

func ACols(v string) ColsOpt

type ColspanOpt

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

func AColspan added in v0.12.0

func AColspan(v string) ColspanOpt

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.12.0

func AContent(v string) ContentOpt

type ControlsOpt

type ControlsOpt struct{}

func AControls added in v0.12.0

func AControls() ControlsOpt

type CoordsOpt added in v0.12.0

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

func ACoords added in v0.12.0

func ACoords(v string) CoordsOpt

type CrossoriginOpt

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

func ACrossorigin added in v0.12.0

func ACrossorigin(v string) CrossoriginOpt

type CxOpt

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

func ACx added in v0.12.0

func ACx(v string) CxOpt

type CyOpt

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

func ACy added in v0.12.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.12.0

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

type DataAttrs added in v0.12.0

type DataAttrs struct {
	Global GlobalAttrs
	Value  string
}

func (*DataAttrs) WriteAttrs added in v0.12.0

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

type DatalistArg

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

type DatalistAttrs

type DatalistAttrs struct {
	Global GlobalAttrs
}

func (*DatalistAttrs) WriteAttrs added in v0.12.0

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

type DatetimeOpt

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

func ADatetime added in v0.12.0

func ADatetime(v string) DatetimeOpt

type DdArg

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

type DdAttrs

type DdAttrs struct {
	Global GlobalAttrs
}

func (*DdAttrs) WriteAttrs added in v0.12.0

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

type DefaultOpt

type DefaultOpt struct{}

func ADefault added in v0.12.0

func ADefault() DefaultOpt

type DeferOpt

type DeferOpt struct{}

func ADefer added in v0.12.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.12.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
	Open   bool
}

func (*DetailsAttrs) WriteAttrs added in v0.12.0

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

type DfnArg

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

type DfnAttrs

type DfnAttrs struct {
	Global GlobalAttrs
}

func (*DfnAttrs) WriteAttrs added in v0.12.0

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

type DialogArg

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

type DialogAttrs

type DialogAttrs struct {
	Global GlobalAttrs
	Open   bool
}

func (*DialogAttrs) WriteAttrs added in v0.12.0

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

type DiffuseConstantOpt added in v0.12.0

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

func ADiffuseConstant added in v0.12.0

func ADiffuseConstant(v string) DiffuseConstantOpt

type DirnameOpt added in v0.12.0

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

func ADirname added in v0.12.0

func ADirname(v string) DirnameOpt

type DisabledOpt

type DisabledOpt struct{}

func ADisabled added in v0.12.0

func ADisabled() DisabledOpt

type DivArg

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

type DivAttrs

type DivAttrs struct {
	Global GlobalAttrs
}

func (*DivAttrs) WriteAttrs added in v0.12.0

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

type DivisorOpt added in v0.12.0

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

func ADivisor added in v0.12.0

func ADivisor(v string) DivisorOpt

type DlArg

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

type DlAttrs

type DlAttrs struct {
	Global GlobalAttrs
}

func (*DlAttrs) WriteAttrs added in v0.12.0

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

type DownloadOpt added in v0.12.0

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

func ADownload added in v0.12.0

func ADownload(v string) DownloadOpt

type DtArg

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

type DtAttrs

type DtAttrs struct {
	Global GlobalAttrs
}

func (*DtAttrs) WriteAttrs added in v0.12.0

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

type DurOpt added in v0.12.0

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

func ADur added in v0.12.0

func ADur(v string) DurOpt

type DxOpt

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

func ADx added in v0.12.0

func ADx(v string) DxOpt

type DyOpt

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

func ADy added in v0.12.0

func ADy(v string) DyOpt

type EdgeModeOpt added in v0.12.0

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

func AEdgeMode added in v0.12.0

func AEdgeMode(v string) EdgeModeOpt

type ElevationOpt added in v0.12.0

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

func AElevation added in v0.12.0

func AElevation(v string) ElevationOpt

type EmArg

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

type EmAttrs

type EmAttrs struct {
	Global GlobalAttrs
}

func (*EmAttrs) WriteAttrs added in v0.12.0

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

type EmbedArg added in v0.12.0

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

type EmbedAttrs added in v0.12.0

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

func (*EmbedAttrs) WriteAttrs added in v0.12.0

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

type EnctypeOpt

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

func AEnctype added in v0.12.0

func AEnctype(v string) EnctypeOpt

type EndOpt added in v0.12.0

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

func AEnd added in v0.12.0

func AEnd(v string) EndOpt

type ExponentOpt added in v0.12.0

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

func AExponent added in v0.12.0

func AExponent(v string) ExponentOpt

type ExternalResourcesRequiredOpt added in v0.12.0

type ExternalResourcesRequiredOpt struct{}

func AExternalResourcesRequired added in v0.12.0

func AExternalResourcesRequired() ExternalResourcesRequiredOpt

type FieldsetArg

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

type FieldsetAttrs

type FieldsetAttrs struct {
	Global GlobalAttrs
}

func (*FieldsetAttrs) WriteAttrs added in v0.12.0

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

type FigcaptionArg

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

type FigcaptionAttrs

type FigcaptionAttrs struct {
	Global GlobalAttrs
}

func (*FigcaptionAttrs) WriteAttrs added in v0.12.0

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

type FigureArg

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

type FigureAttrs

type FigureAttrs struct {
	Global GlobalAttrs
}

func (*FigureAttrs) WriteAttrs added in v0.12.0

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

type FillOpacityOpt

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

func AFillOpacity added in v0.12.0

func AFillOpacity(v string) FillOpacityOpt

type FillOpt

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

func AFill added in v0.12.0

func AFill(v string) FillOpt

type FilterUnitsOpt added in v0.12.0

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

func AFilterUnits added in v0.12.0

func AFilterUnits(v string) FilterUnitsOpt

type FloodColorOpt added in v0.12.0

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

func AFloodColor added in v0.12.0

func AFloodColor(v string) FloodColorOpt

type FloodOpacityOpt added in v0.12.0

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

func AFloodOpacity added in v0.12.0

func AFloodOpacity(v string) FloodOpacityOpt

type FooterArg

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

type FooterAttrs

type FooterAttrs struct {
	Global GlobalAttrs
}

func (*FooterAttrs) WriteAttrs added in v0.12.0

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

type ForOpt

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

func AFor added in v0.12.0

func AFor(v string) ForOpt

type FormArg

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

type FormAttrs

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

func (*FormAttrs) WriteAttrs added in v0.12.0

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

type FormOpt

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

func AForm added in v0.12.0

func AForm(v string) FormOpt

type FormactionOpt

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

func AFormaction added in v0.12.0

func AFormaction(v string) FormactionOpt

type FormenctypeOpt

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

func AFormenctype added in v0.12.0

func AFormenctype(v string) FormenctypeOpt

type FormmethodOpt

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

func AFormmethod added in v0.12.0

func AFormmethod(v string) FormmethodOpt

type FormnovalidateOpt

type FormnovalidateOpt struct{}

func AFormnovalidate added in v0.12.0

func AFormnovalidate() FormnovalidateOpt

type FormtargetOpt

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

func AFormtarget added in v0.12.0

func AFormtarget(v string) FormtargetOpt

type FragmentNode added in v0.12.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.12.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 FromOpt added in v0.12.0

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

func AFrom added in v0.12.0

func AFrom(v string) FromOpt

type FxOpt added in v0.12.0

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

func AFx added in v0.12.0

func AFx(v string) FxOpt

type FyOpt added in v0.12.0

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

func AFy added in v0.12.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.12.0

func AAccesskey(v string) Global

func AAria added in v0.12.0

func AAria(k, v string) Global

func AClass added in v0.12.0

func AClass(v string) Global

Global attribute constructors

func AContenteditable added in v0.12.0

func AContenteditable(v string) Global

func ACustom added in v0.12.0

func ACustom(k, v string) Global

func AData added in v0.12.0

func AData(k, v string) Global

Map-like convenience functions

func ADir added in v0.12.0

func ADir(v string) Global

func ADraggable added in v0.12.0

func ADraggable(b bool) Global

func AHidden added in v0.12.0

func AHidden() Global

func AId added in v0.12.0

func AId(v string) Global

func AOn added in v0.12.0

func AOn(ev, handler string) Global

func ASpellcheck added in v0.12.0

func ASpellcheck(b bool) Global

func AStyle added in v0.12.0

func AStyle(style string) Global

func ATabindex added in v0.12.0

func ATabindex(i int) Global

func ATitle added in v0.12.0

func ATitle(v string) Global

func (Global) Do added in v0.12.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
	Contenteditable string
	Dir             string
	Id              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

	// Booleans
	Hidden bool
}

type GradientTransformOpt added in v0.12.0

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

func AGradientTransform added in v0.12.0

func AGradientTransform(v string) GradientTransformOpt

type GradientUnitsOpt added in v0.12.0

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

func AGradientUnits added in v0.12.0

func AGradientUnits(v string) GradientUnitsOpt

type H1Arg

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

type H1Attrs

type H1Attrs struct {
	Global GlobalAttrs
}

func (*H1Attrs) WriteAttrs added in v0.12.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
}

func (*H2Attrs) WriteAttrs added in v0.12.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
}

func (*H3Attrs) WriteAttrs added in v0.12.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
}

func (*H4Attrs) WriteAttrs added in v0.12.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
}

func (*H5Attrs) WriteAttrs added in v0.12.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
}

func (*H6Attrs) WriteAttrs added in v0.12.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
}

func (*HeadAttrs) WriteAttrs added in v0.12.0

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

type HeaderArg

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

type HeaderAttrs

type HeaderAttrs struct {
	Global GlobalAttrs
}

func (*HeaderAttrs) WriteAttrs added in v0.12.0

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

type HeadersOpt

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

func AHeaders added in v0.12.0

func AHeaders(v string) HeadersOpt

type HeightOpt

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

func AHeight added in v0.12.0

func AHeight(v string) HeightOpt

type HgroupArg added in v0.12.0

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

type HgroupAttrs added in v0.12.0

type HgroupAttrs struct {
	Global GlobalAttrs
}

func (*HgroupAttrs) WriteAttrs added in v0.12.0

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

type HighOpt added in v0.12.0

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

func AHigh added in v0.12.0

func AHigh(v string) HighOpt

type HrArg

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

type HrAttrs

type HrAttrs struct {
	Global GlobalAttrs
}

func (*HrAttrs) WriteAttrs added in v0.12.0

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

type HrefOpt

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

func AHref added in v0.12.0

func AHref(v string) HrefOpt

type HreflangOpt

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

func AHreflang added in v0.12.0

func AHreflang(v string) HreflangOpt

type HtmlArg

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

type HtmlAttrs

type HtmlAttrs struct {
	Global GlobalAttrs
	Lang   string
}

func (*HtmlAttrs) WriteAttrs added in v0.12.0

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

type HttpequivOpt added in v0.12.0

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

func AHttpequiv added in v0.12.0

func AHttpequiv(v string) HttpequivOpt

type IArg

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

type IAttrs

type IAttrs struct {
	Global GlobalAttrs
}

func (*IAttrs) WriteAttrs added in v0.12.0

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

type IframeArg

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

type IframeAttrs

type IframeAttrs struct {
	Global              GlobalAttrs
	Allow               string
	Allowfullscreen     bool
	Allowpaymentrequest bool
	Height              string
	Name                string
	Referrerpolicy      string
	Sandbox             string
	Src                 string
	Srcdoc              string
	Width               string
}

func (*IframeAttrs) WriteAttrs added in v0.12.0

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

type ImgArg

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

type ImgAttrs

type ImgAttrs struct {
	Global         GlobalAttrs
	Alt            string
	Crossorigin    string
	Height         string
	Ismap          bool
	Loading        string
	Longdesc       string
	Referrerpolicy string
	Sizes          string
	Src            string
	Srcset         string
	Usemap         string
	Width          string
}

func (*ImgAttrs) WriteAttrs added in v0.12.0

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

type In2Opt added in v0.12.0

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

func AIn2 added in v0.12.0

func AIn2(v string) In2Opt

type InOpt added in v0.12.0

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

func AIn added in v0.12.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
	Alt            string
	Autocomplete   string
	Autofocus      bool
	Checked        bool
	Dirname        string
	Disabled       bool
	Form           string
	Formaction     string
	Formenctype    string
	Formmethod     string
	Formnovalidate bool
	Formtarget     string
	Height         string
	List           string
	Max            string
	Maxlength      string
	Min            string
	Minlength      string
	Multiple       bool
	Name           string
	Pattern        string
	Placeholder    string
	Readonly       bool
	Required       bool
	Size           string
	Src            string
	Step           string
	Type           string
	Value          string
	Width          string
}

func (*InputAttrs) WriteAttrs added in v0.12.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.12.0

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

type IntegrityOpt added in v0.12.0

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

func AIntegrity added in v0.12.0

func AIntegrity(v string) IntegrityOpt

type InterceptOpt added in v0.12.0

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

func AIntercept added in v0.12.0

func AIntercept(v string) InterceptOpt

type IsmapOpt added in v0.12.0

type IsmapOpt struct{}

func AIsmap added in v0.12.0

func AIsmap() IsmapOpt

type K1Opt added in v0.12.0

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

func AK1 added in v0.12.0

func AK1(v string) K1Opt

type K2Opt added in v0.12.0

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

func AK2 added in v0.12.0

func AK2(v string) K2Opt

type K3Opt added in v0.12.0

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

func AK3 added in v0.12.0

func AK3(v string) K3Opt

type K4Opt added in v0.12.0

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

func AK4 added in v0.12.0

func AK4(v string) K4Opt

type KbdArg

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

type KbdAttrs

type KbdAttrs struct {
	Global GlobalAttrs
}

func (*KbdAttrs) WriteAttrs added in v0.12.0

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

type KernelMatrixOpt added in v0.12.0

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

func AKernelMatrix added in v0.12.0

func AKernelMatrix(v string) KernelMatrixOpt

type KernelUnitLengthOpt added in v0.12.0

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

func AKernelUnitLength added in v0.12.0

func AKernelUnitLength(v string) KernelUnitLengthOpt

type KeySplinesOpt added in v0.12.0

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

func AKeySplines added in v0.12.0

func AKeySplines(v string) KeySplinesOpt

type KeyTimesOpt added in v0.12.0

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

func AKeyTimes added in v0.12.0

func AKeyTimes(v string) KeyTimesOpt

type KindOpt

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

func AKind added in v0.12.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.12.0

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

type LabelOpt

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

func ALabel added in v0.12.0

func ALabel(v string) LabelOpt

type LangOpt added in v0.12.0

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

func ALang added in v0.12.0

func ALang(v string) LangOpt

type LanguageOpt added in v0.12.0

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

func ALanguage added in v0.12.0

func ALanguage(v string) LanguageOpt

type LegendArg

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

type LegendAttrs

type LegendAttrs struct {
	Global GlobalAttrs
}

func (*LegendAttrs) WriteAttrs added in v0.12.0

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

type LengthAdjustOpt

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

func ALengthAdjust added in v0.12.0

func ALengthAdjust(v string) LengthAdjustOpt

type LiArg

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

type LiAttrs

type LiAttrs struct {
	Global GlobalAttrs
	Value  string
}

func (*LiAttrs) WriteAttrs added in v0.12.0

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

type LimitingConeAngleOpt added in v0.12.0

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

func ALimitingConeAngle added in v0.12.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
	Crossorigin    string
	Href           string
	Hreflang       string
	Integrity      string
	Media          string
	Referrerpolicy string
	Rel            string
	Sizes          string
	Type           string
}

func (*LinkAttrs) WriteAttrs added in v0.12.0

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

type ListOpt

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

func AList added in v0.12.0

func AList(v string) ListOpt

type LoadingOpt

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

func ALoading added in v0.12.0

func ALoading(v string) LoadingOpt

type LongdescOpt added in v0.12.0

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

func ALongdesc added in v0.12.0

func ALongdesc(v string) LongdescOpt

type LoopOpt

type LoopOpt struct{}

func ALoop added in v0.12.0

func ALoop() LoopOpt

type LowOpt added in v0.12.0

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

func ALow added in v0.12.0

func ALow(v string) LowOpt

type MainArg

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

type MainAttrs

type MainAttrs struct {
	Global GlobalAttrs
}

func (*MainAttrs) WriteAttrs added in v0.12.0

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

type MapArg added in v0.12.0

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

type MapAttrs added in v0.12.0

type MapAttrs struct {
	Global GlobalAttrs
	Name   string
}

func (*MapAttrs) WriteAttrs added in v0.12.0

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

type MarkArg

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

type MarkAttrs

type MarkAttrs struct {
	Global GlobalAttrs
}

func (*MarkAttrs) WriteAttrs added in v0.12.0

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

type MarkerHeightOpt added in v0.12.0

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

func AMarkerHeight added in v0.12.0

func AMarkerHeight(v string) MarkerHeightOpt

type MarkerUnitsOpt added in v0.12.0

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

func AMarkerUnits added in v0.12.0

func AMarkerUnits(v string) MarkerUnitsOpt

type MarkerWidthOpt added in v0.12.0

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

func AMarkerWidth added in v0.12.0

func AMarkerWidth(v string) MarkerWidthOpt

type MaskContentUnitsOpt added in v0.12.0

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

func AMaskContentUnits added in v0.12.0

func AMaskContentUnits(v string) MaskContentUnitsOpt

type MaskUnitsOpt added in v0.12.0

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

func AMaskUnits added in v0.12.0

func AMaskUnits(v string) MaskUnitsOpt

type MaxOpt

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

func AMax added in v0.12.0

func AMax(v string) MaxOpt

type MaxlengthOpt

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

func AMaxlength added in v0.12.0

func AMaxlength(v string) MaxlengthOpt

type MediaOpt

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

func AMedia added in v0.12.0

func AMedia(v string) MediaOpt
type MenuArg interface {
	// contains filtered or unexported methods
}
type MenuAttrs struct {
	Global GlobalAttrs
	Type   string
}
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
	Name      string
}

func (*MetaAttrs) WriteAttrs added in v0.12.0

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

type MeterArg added in v0.12.0

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

type MeterAttrs added in v0.12.0

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

func (*MeterAttrs) WriteAttrs added in v0.12.0

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

type MethodOpt

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

func AMethod added in v0.12.0

func AMethod(v string) MethodOpt

type MinOpt

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

func AMin added in v0.12.0

func AMin(v string) MinOpt

type MinlengthOpt

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

func AMinlength added in v0.12.0

func AMinlength(v string) MinlengthOpt

type ModeOpt added in v0.12.0

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

func AMode added in v0.12.0

func AMode(v string) ModeOpt

type MultipleOpt

type MultipleOpt struct{}

func AMultiple added in v0.12.0

func AMultiple() MultipleOpt

type MutedOpt

type MutedOpt struct{}

func AMuted added in v0.12.0

func AMuted() MutedOpt

type NameOpt

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

func AName added in v0.12.0

func AName(v string) NameOpt
type NavArg interface {
	// contains filtered or unexported methods
}
type NavAttrs struct {
	Global GlobalAttrs
}
func (a *NavAttrs) WriteAttrs(sb *strings.Builder)

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 Abbr

func Abbr(args ...AbbrArg) Node

func Address

func Address(args ...AddressArg) Node

func Area added in v0.12.0

func Area(args ...AreaArg) Node

func Article

func Article(args ...ArticleArg) Node

func Aside

func Aside(args ...AsideArg) Node

func Audio

func Audio(args ...AudioArg) Node

func B

func B(args ...BArg) Node

func Base added in v0.12.0

func Base(args ...BaseArg) Node

func Bdi added in v0.12.0

func Bdi(args ...BdiArg) Node

func Bdo added in v0.12.0

func Bdo(args ...BdoArg) 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 Cite

func Cite(args ...CiteArg) Node

func Code

func Code(args ...CodeArg) Node

func Col

func Col(args ...ColArg) Node

func Colgroup

func Colgroup(args ...ColgroupArg) Node

func Data

func Data(args ...DataArg) Node

func Datalist

func Datalist(args ...DatalistArg) Node

func Dd

func Dd(args ...DdArg) Node

func Del

func Del(args ...DelArg) Node

func Details

func Details(args ...DetailsArg) Node

func Dfn

func Dfn(args ...DfnArg) Node

func Dialog

func Dialog(args ...DialogArg) Node

func Div

func Div(args ...DivArg) Node

func Dl

func Dl(args ...DlArg) Node

func Dt

func Dt(args ...DtArg) Node

func Em

func Em(args ...EmArg) Node

func Embed added in v0.12.0

func Embed(args ...EmbedArg) Node

func Fieldset

func Fieldset(args ...FieldsetArg) Node

func Figcaption

func Figcaption(args ...FigcaptionArg) Node

func Figure

func Figure(args ...FigureArg) Node
func Footer(args ...FooterArg) Node

func Form

func Form(args ...FormArg) 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 Header(args ...HeaderArg) Node

func Hgroup added in v0.12.0

func Hgroup(args ...HgroupArg) Node

func Hr

func Hr(args ...HrArg) Node

func Html

func Html(args ...HtmlArg) Node

func I

func I(args ...IArg) 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 Kbd

func Kbd(args ...KbdArg) 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 Main

func Main(args ...MainArg) Node

func Map added in v0.12.0

func Map(args ...MapArg) Node

func Mark

func Mark(args ...MarkArg) Node
func Menu(args ...MenuArg) Node

func Meta

func Meta(args ...MetaArg) Node

func Meter added in v0.12.0

func Meter(args ...MeterArg) Node
func Nav(args ...NavArg) Node

func Noscript added in v0.12.0

func Noscript(args ...NoscriptArg) Node

func Object added in v0.12.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.12.0

func Output(args ...OutputArg) Node

func P

func P(args ...PArg) Node

func Param added in v0.12.0

func Param(args ...ParamArg) Node

func Pre

func Pre(args ...PreArg) Node

func Progress added in v0.12.0

func Progress(args ...ProgressArg) Node

func Q

func Q(args ...QArg) Node

func Rb added in v0.12.0

func Rb(args ...RbArg) Node

func Rp added in v0.12.0

func Rp(args ...RpArg) Node

func Rt added in v0.12.0

func Rt(args ...RtArg) Node

func Rtc added in v0.12.0

func Rtc(args ...RtcArg) Node

func Ruby added in v0.12.0

func Ruby(args ...RubyArg) Node

func S

func S(args ...SArg) Node

func Samp

func Samp(args ...SampArg) Node

func Script

func Script(args ...ScriptArg) Node

func Section

func Section(args ...SectionArg) Node

func Select

func Select(args ...SelectArg) Node

func Slot

func Slot(args ...SlotArg) Node

func Small

func Small(args ...SmallArg) Node

func Source

func Source(args ...SourceArg) Node

func Span

func Span(args ...SpanArg) Node

func Strike added in v0.12.0

func Strike(args ...StrikeArg) Node

func Strong

func Strong(args ...StrongArg) Node

func Style

func Style(args ...StyleArg) Node

func Sub

func Sub(args ...SubArg) Node

func Summary

func Summary(args ...SummaryArg) Node

func Sup

func Sup(args ...SupArg) Node

func Svg

func Svg(args ...SvgArg) Node

Svg creates an SVG svg element

func SvgAnimate added in v0.12.0

func SvgAnimate(args ...SvgAnimateArg) Node

SvgAnimate creates an SVG animate element (self-closing)

func SvgAnimateMotion added in v0.12.0

func SvgAnimateMotion(args ...SvgAnimateMotionArg) Node

SvgAnimateMotion creates an SVG animateMotion element (self-closing)

func SvgAnimateTransform added in v0.12.0

func SvgAnimateTransform(args ...SvgAnimateTransformArg) Node

SvgAnimateTransform creates an SVG animateTransform element (self-closing)

func SvgCircle added in v0.12.0

func SvgCircle(args ...SvgCircleArg) Node

SvgCircle creates an SVG circle element (self-closing)

func SvgClipPath added in v0.12.0

func SvgClipPath(args ...SvgClipPathArg) Node

SvgClipPath creates an SVG clipPath element

func SvgDefs added in v0.12.0

func SvgDefs(args ...SvgDefsArg) Node

SvgDefs creates an SVG defs element

func SvgDesc added in v0.12.0

func SvgDesc(args ...SvgDescArg) Node

SvgDesc creates an SVG desc element

func SvgEllipse added in v0.12.0

func SvgEllipse(args ...SvgEllipseArg) Node

SvgEllipse creates an SVG ellipse element (self-closing)

func SvgFeBlend added in v0.12.0

func SvgFeBlend(args ...SvgFeBlendArg) Node

SvgFeBlend creates an SVG feBlend element

func SvgFeColorMatrix added in v0.12.0

func SvgFeColorMatrix(args ...SvgFeColorMatrixArg) Node

SvgFeColorMatrix creates an SVG feColorMatrix element

func SvgFeComponentTransfer added in v0.12.0

func SvgFeComponentTransfer(args ...SvgFeComponentTransferArg) Node

SvgFeComponentTransfer creates an SVG feComponentTransfer element

func SvgFeComposite added in v0.12.0

func SvgFeComposite(args ...SvgFeCompositeArg) Node

SvgFeComposite creates an SVG feComposite element

func SvgFeConvolveMatrix added in v0.12.0

func SvgFeConvolveMatrix(args ...SvgFeConvolveMatrixArg) Node

SvgFeConvolveMatrix creates an SVG feConvolveMatrix element

func SvgFeDiffuseLighting added in v0.12.0

func SvgFeDiffuseLighting(args ...SvgFeDiffuseLightingArg) Node

SvgFeDiffuseLighting creates an SVG feDiffuseLighting element

func SvgFeDisplacementMap added in v0.12.0

func SvgFeDisplacementMap(args ...SvgFeDisplacementMapArg) Node

SvgFeDisplacementMap creates an SVG feDisplacementMap element

func SvgFeDistantLight added in v0.12.0

func SvgFeDistantLight(args ...SvgFeDistantLightArg) Node

SvgFeDistantLight creates an SVG feDistantLight element

func SvgFeDropShadow added in v0.12.0

func SvgFeDropShadow(args ...SvgFeDropShadowArg) Node

SvgFeDropShadow creates an SVG feDropShadow element

func SvgFeFlood added in v0.12.0

func SvgFeFlood(args ...SvgFeFloodArg) Node

SvgFeFlood creates an SVG feFlood element

func SvgFeFuncA added in v0.12.0

func SvgFeFuncA(args ...SvgFeFuncAArg) Node

SvgFeFuncA creates an SVG feFuncA element

func SvgFeFuncB added in v0.12.0

func SvgFeFuncB(args ...SvgFeFuncBArg) Node

SvgFeFuncB creates an SVG feFuncB element

func SvgFeFuncG added in v0.12.0

func SvgFeFuncG(args ...SvgFeFuncGArg) Node

SvgFeFuncG creates an SVG feFuncG element

func SvgFeFuncR added in v0.12.0

func SvgFeFuncR(args ...SvgFeFuncRArg) Node

SvgFeFuncR creates an SVG feFuncR element

func SvgFeGaussianBlur added in v0.12.0

func SvgFeGaussianBlur(args ...SvgFeGaussianBlurArg) Node

SvgFeGaussianBlur creates an SVG feGaussianBlur element

func SvgFeImage added in v0.12.0

func SvgFeImage(args ...SvgFeImageArg) Node

SvgFeImage creates an SVG feImage element

func SvgFeMerge added in v0.12.0

func SvgFeMerge(args ...SvgFeMergeArg) Node

SvgFeMerge creates an SVG feMerge element

func SvgFeMergeNode added in v0.12.0

func SvgFeMergeNode(args ...SvgFeMergeNodeArg) Node

SvgFeMergeNode creates an SVG feMergeNode element

func SvgFeMorphology added in v0.12.0

func SvgFeMorphology(args ...SvgFeMorphologyArg) Node

SvgFeMorphology creates an SVG feMorphology element

func SvgFeOffset added in v0.12.0

func SvgFeOffset(args ...SvgFeOffsetArg) Node

SvgFeOffset creates an SVG feOffset element

func SvgFePointLight added in v0.12.0

func SvgFePointLight(args ...SvgFePointLightArg) Node

SvgFePointLight creates an SVG fePointLight element

func SvgFeSpecularLighting added in v0.12.0

func SvgFeSpecularLighting(args ...SvgFeSpecularLightingArg) Node

SvgFeSpecularLighting creates an SVG feSpecularLighting element

func SvgFeSpotLight added in v0.12.0

func SvgFeSpotLight(args ...SvgFeSpotLightArg) Node

SvgFeSpotLight creates an SVG feSpotLight element

func SvgFeTile added in v0.12.0

func SvgFeTile(args ...SvgFeTileArg) Node

SvgFeTile creates an SVG feTile element

func SvgFeTurbulence added in v0.12.0

func SvgFeTurbulence(args ...SvgFeTurbulenceArg) Node

SvgFeTurbulence creates an SVG feTurbulence element

func SvgFilter added in v0.12.0

func SvgFilter(args ...SvgFilterArg) Node

SvgFilter creates an SVG filter element

func SvgForeignObject added in v0.12.0

func SvgForeignObject(args ...SvgForeignObjectArg) Node

SvgForeignObject creates an SVG foreignObject element

func SvgG added in v0.12.0

func SvgG(args ...SvgGArg) Node

SvgG creates an SVG g element

func SvgImage added in v0.12.0

func SvgImage(args ...SvgImageArg) Node

SvgImage creates an SVG image element

func SvgLine added in v0.12.0

func SvgLine(args ...SvgLineArg) Node

SvgLine creates an SVG line element (self-closing)

func SvgLinearGradient added in v0.12.0

func SvgLinearGradient(args ...SvgLinearGradientArg) Node

SvgLinearGradient creates an SVG linearGradient element

func SvgMarker added in v0.12.0

func SvgMarker(args ...SvgMarkerArg) Node

SvgMarker creates an SVG marker element

func SvgMask added in v0.12.0

func SvgMask(args ...SvgMaskArg) Node

SvgMask creates an SVG mask element

func SvgMetadata added in v0.12.0

func SvgMetadata(args ...SvgMetadataArg) Node

SvgMetadata creates an SVG metadata element

func SvgMpath added in v0.12.0

func SvgMpath(args ...SvgMpathArg) Node

SvgMpath creates an SVG mpath element

func SvgPath added in v0.12.0

func SvgPath(args ...SvgPathArg) Node

SvgPath creates an SVG path element (self-closing)

func SvgPattern added in v0.12.0

func SvgPattern(args ...SvgPatternArg) Node

SvgPattern creates an SVG pattern element

func SvgPolygon added in v0.12.0

func SvgPolygon(args ...SvgPolygonArg) Node

SvgPolygon creates an SVG polygon element (self-closing)

func SvgPolyline added in v0.12.0

func SvgPolyline(args ...SvgPolylineArg) Node

SvgPolyline creates an SVG polyline element (self-closing)

func SvgRadialGradient added in v0.12.0

func SvgRadialGradient(args ...SvgRadialGradientArg) Node

SvgRadialGradient creates an SVG radialGradient element

func SvgRect added in v0.12.0

func SvgRect(args ...SvgRectArg) Node

SvgRect creates an SVG rect element (self-closing)

func SvgSet added in v0.12.0

func SvgSet(args ...SvgSetArg) Node

SvgSet creates an SVG set element

func SvgStop added in v0.12.0

func SvgStop(args ...SvgStopArg) Node

SvgStop creates an SVG stop element (self-closing)

func SvgSwitch added in v0.12.0

func SvgSwitch(args ...SvgSwitchArg) Node

SvgSwitch creates an SVG switch element

func SvgSymbol added in v0.12.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.12.0

func SvgTextPath(args ...SvgTextPathArg) Node

SvgTextPath creates an SVG textPath element

func SvgTspan added in v0.12.0

func SvgTspan(args ...SvgTspanArg) Node

SvgTspan creates an SVG tspan element

func SvgUse added in v0.12.0

func SvgUse(args ...SvgUseArg) Node

SvgUse creates an SVG use element (self-closing)

func SvgView added in v0.12.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 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 Title

func Title(args ...TitleArg) Node

func Tr

func Tr(args ...TrArg) Node

func Track

func Track(args ...TrackArg) Node

func U

func U(args ...UArg) Node

func Ul

func Ul(args ...UlArg) Node

func Var

func Var(args ...VarArg) Node

func Video

func Video(args ...VideoArg) Node

func Wbr added in v0.12.0

func Wbr(args ...WbrArg) 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 NomoduleOpt added in v0.12.0

type NomoduleOpt struct{}

func ANomodule added in v0.12.0

func ANomodule() NomoduleOpt

type NonceOpt added in v0.12.0

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

func ANonce added in v0.12.0

func ANonce(v string) NonceOpt

type NoscriptArg added in v0.12.0

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

type NoscriptAttrs added in v0.12.0

type NoscriptAttrs struct {
	Global GlobalAttrs
}

func (*NoscriptAttrs) WriteAttrs added in v0.12.0

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

type NovalidateOpt

type NovalidateOpt struct{}

func ANovalidate added in v0.12.0

func ANovalidate() NovalidateOpt

type NumOctavesOpt added in v0.12.0

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

func ANumOctaves added in v0.12.0

func ANumOctaves(v string) NumOctavesOpt

type ObjectArg added in v0.12.0

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

type ObjectAttrs added in v0.12.0

type ObjectAttrs struct {
	Global        GlobalAttrs
	Data          string
	Form          string
	Height        string
	Name          string
	Type          string
	Typemustmatch bool
	Usemap        string
	Width         string
}

func (*ObjectAttrs) WriteAttrs added in v0.12.0

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

type OffsetOpt added in v0.12.0

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

func AOffset added in v0.12.0

func AOffset(v string) OffsetOpt

type OlArg

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

type OlAttrs

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

func (*OlAttrs) WriteAttrs added in v0.12.0

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

type OpenOpt

type OpenOpt struct{}

func AOpen added in v0.12.0

func AOpen() OpenOpt

type OperatorOpt added in v0.12.0

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

func AOperator added in v0.12.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.12.0

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

type OptimumOpt added in v0.12.0

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

func AOptimum added in v0.12.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.12.0

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

type OrderOpt added in v0.12.0

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

func AOrder added in v0.12.0

func AOrder(v string) OrderOpt

type OrientOpt added in v0.12.0

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

func AOrient added in v0.12.0

func AOrient(v string) OrientOpt

type OutputArg added in v0.12.0

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

type OutputAttrs added in v0.12.0

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

func (*OutputAttrs) WriteAttrs added in v0.12.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
}

func (*PAttrs) WriteAttrs added in v0.12.0

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

type ParamArg added in v0.12.0

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

type ParamAttrs added in v0.12.0

type ParamAttrs struct {
	Global GlobalAttrs
	Name   string
	Value  string
}

func (*ParamAttrs) WriteAttrs added in v0.12.0

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

type PathLengthOpt

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

func APathLength added in v0.12.0

func APathLength(v string) PathLengthOpt

type PatternContentUnitsOpt added in v0.12.0

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

func APatternContentUnits added in v0.12.0

func APatternContentUnits(v string) PatternContentUnitsOpt

type PatternOpt

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

func APattern added in v0.12.0

func APattern(v string) PatternOpt

type PatternTransformOpt added in v0.12.0

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

func APatternTransform added in v0.12.0

func APatternTransform(v string) PatternTransformOpt

type PatternUnitsOpt added in v0.12.0

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

func APatternUnits added in v0.12.0

func APatternUnits(v string) PatternUnitsOpt

type PingOpt added in v0.12.0

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

func APing added in v0.12.0

func APing(v string) PingOpt

type PlaceholderOpt

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

func APlaceholder added in v0.12.0

func APlaceholder(v string) PlaceholderOpt

type PlaysinlineOpt added in v0.12.0

type PlaysinlineOpt struct{}

func APlaysinline added in v0.12.0

func APlaysinline() PlaysinlineOpt

type PointsAtXOpt added in v0.12.0

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

func APointsAtX added in v0.12.0

func APointsAtX(v string) PointsAtXOpt

type PointsAtYOpt added in v0.12.0

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

func APointsAtY added in v0.12.0

func APointsAtY(v string) PointsAtYOpt

type PointsAtZOpt added in v0.12.0

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

func APointsAtZ added in v0.12.0

func APointsAtZ(v string) PointsAtZOpt

type PointsOpt

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

func APoints added in v0.12.0

func APoints(v string) PointsOpt

type PopovertargetOpt added in v0.12.0

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

func APopovertarget added in v0.12.0

func APopovertarget(v string) PopovertargetOpt

type PopovertargetactionOpt added in v0.12.0

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

func APopovertargetaction added in v0.12.0

func APopovertargetaction(v string) PopovertargetactionOpt

type PosterOpt

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

func APoster added in v0.12.0

func APoster(v string) PosterOpt

type PreArg

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

type PreAttrs

type PreAttrs struct {
	Global GlobalAttrs
}

func (*PreAttrs) WriteAttrs added in v0.12.0

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

type PreloadOpt

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

func APreload added in v0.12.0

func APreload(v string) PreloadOpt

type PreserveAlphaOpt added in v0.12.0

type PreserveAlphaOpt struct{}

func APreserveAlpha added in v0.12.0

func APreserveAlpha() PreserveAlphaOpt

type PreserveAspectRatioOpt

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

func APreserveAspectRatio added in v0.12.0

func APreserveAspectRatio(v string) PreserveAspectRatioOpt

type PrimitiveUnitsOpt added in v0.12.0

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

func APrimitiveUnits added in v0.12.0

func APrimitiveUnits(v string) PrimitiveUnitsOpt

type ProgressArg added in v0.12.0

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

type ProgressAttrs added in v0.12.0

type ProgressAttrs struct {
	Global GlobalAttrs
	Max    string
	Value  string
}

func (*ProgressAttrs) WriteAttrs added in v0.12.0

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

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.12.0

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

type ROpt

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

func AR added in v0.12.0

func AR(v string) ROpt

type RadiusOpt added in v0.12.0

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

func ARadius added in v0.12.0

func ARadius(v string) RadiusOpt

type RbArg added in v0.12.0

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

type RbAttrs added in v0.12.0

type RbAttrs struct {
	Global GlobalAttrs
}

func (*RbAttrs) WriteAttrs added in v0.12.0

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

type ReadonlyOpt

type ReadonlyOpt struct{}

func AReadonly added in v0.12.0

func AReadonly() ReadonlyOpt

type RefXOpt added in v0.12.0

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

func ARefX added in v0.12.0

func ARefX(v string) RefXOpt

type RefYOpt added in v0.12.0

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

func ARefY added in v0.12.0

func ARefY(v string) RefYOpt

type ReferrerpolicyOpt

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

func AReferrerpolicy added in v0.12.0

func AReferrerpolicy(v string) ReferrerpolicyOpt

type RelOpt

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

func ARel added in v0.12.0

func ARel(v string) RelOpt

type RepeatCountOpt added in v0.12.0

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

func ARepeatCount added in v0.12.0

func ARepeatCount(v string) RepeatCountOpt

type RepeatDurOpt added in v0.12.0

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

func ARepeatDur added in v0.12.0

func ARepeatDur(v string) RepeatDurOpt

type RequiredExtensionsOpt added in v0.12.0

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

func ARequiredExtensions added in v0.12.0

func ARequiredExtensions(v string) RequiredExtensionsOpt

type RequiredFeaturesOpt added in v0.12.0

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

func ARequiredFeatures added in v0.12.0

func ARequiredFeatures(v string) RequiredFeaturesOpt

type RequiredOpt

type RequiredOpt struct{}

func ARequired added in v0.12.0

func ARequired() RequiredOpt

type RestartOpt added in v0.12.0

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

func ARestart added in v0.12.0

func ARestart(v string) RestartOpt

type ReversedOpt

type ReversedOpt struct{}

func AReversed added in v0.12.0

func AReversed() ReversedOpt

type RotateOpt

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

func ARotate added in v0.12.0

func ARotate(v string) RotateOpt

type RowsOpt

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

func ARows added in v0.12.0

func ARows(v string) RowsOpt

type RowspanOpt

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

func ARowspan added in v0.12.0

func ARowspan(v string) RowspanOpt

type RpArg added in v0.12.0

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

type RpAttrs added in v0.12.0

type RpAttrs struct {
	Global GlobalAttrs
}

func (*RpAttrs) WriteAttrs added in v0.12.0

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

type RtArg added in v0.12.0

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

type RtAttrs added in v0.12.0

type RtAttrs struct {
	Global GlobalAttrs
}

func (*RtAttrs) WriteAttrs added in v0.12.0

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

type RtcArg added in v0.12.0

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

type RtcAttrs added in v0.12.0

type RtcAttrs struct {
	Global GlobalAttrs
}

func (*RtcAttrs) WriteAttrs added in v0.12.0

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

type RubyArg added in v0.12.0

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

type RubyAttrs added in v0.12.0

type RubyAttrs struct {
	Global GlobalAttrs
}

func (*RubyAttrs) WriteAttrs added in v0.12.0

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

type RxOpt

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

func ARx added in v0.12.0

func ARx(v string) RxOpt

type RyOpt

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

func ARy added in v0.12.0

func ARy(v string) RyOpt

type SArg

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

type SAttrs

type SAttrs struct {
	Global GlobalAttrs
}

func (*SAttrs) WriteAttrs added in v0.12.0

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

type SampArg

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

type SampAttrs

type SampAttrs struct {
	Global GlobalAttrs
}

func (*SampAttrs) WriteAttrs added in v0.12.0

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

type SandboxOpt

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

func ASandbox added in v0.12.0

func ASandbox(v string) SandboxOpt

type ScaleOpt added in v0.12.0

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

func AScale added in v0.12.0

func AScale(v string) ScaleOpt

type ScopeOpt

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

func AScope added in v0.12.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
	Crossorigin    string
	Defer          bool
	Integrity      string
	Language       string
	Nomodule       bool
	Nonce          string
	Referrerpolicy string
	Src            string
	Type           string
}

func (*ScriptAttrs) WriteAttrs added in v0.12.0

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

type SectionArg

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

type SectionAttrs

type SectionAttrs struct {
	Global GlobalAttrs
}

func (*SectionAttrs) WriteAttrs added in v0.12.0

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

type SeedOpt added in v0.12.0

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

func ASeed added in v0.12.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.12.0

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

type SelectedOpt

type SelectedOpt struct{}

func ASelected added in v0.12.0

func ASelected() SelectedOpt

type ShapeOpt added in v0.12.0

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

func AShape added in v0.12.0

func AShape(v string) ShapeOpt

type SizeOpt

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

func ASize added in v0.12.0

func ASize(v string) SizeOpt

type SizesOpt

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

func ASizes added in v0.12.0

func ASizes(v string) SizesOpt

type SlopeOpt added in v0.12.0

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

func ASlope added in v0.12.0

func ASlope(v string) SlopeOpt

type SlotArg added in v0.12.0

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

type SlotAttrs added in v0.12.0

type SlotAttrs struct {
	Global GlobalAttrs
	Name   string
}

func (*SlotAttrs) WriteAttrs added in v0.12.0

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

type SmallArg

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

type SmallAttrs

type SmallAttrs struct {
	Global GlobalAttrs
}

func (*SmallAttrs) WriteAttrs added in v0.12.0

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

type SourceArg

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

type SourceAttrs

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

func (*SourceAttrs) WriteAttrs added in v0.12.0

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

type SpacingOpt added in v0.12.0

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

func ASpacing added in v0.12.0

func ASpacing(v string) SpacingOpt

type SpanArg

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

type SpanAttrs

type SpanAttrs struct {
	Global GlobalAttrs
}

func (*SpanAttrs) WriteAttrs added in v0.12.0

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

type SpanOpt

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

func ASpan added in v0.12.0

func ASpan(v string) SpanOpt

type SpecularConstantOpt added in v0.12.0

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

func ASpecularConstant added in v0.12.0

func ASpecularConstant(v string) SpecularConstantOpt

type SpecularExponentOpt added in v0.12.0

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

func ASpecularExponent added in v0.12.0

func ASpecularExponent(v string) SpecularExponentOpt

type SpreadMethodOpt added in v0.12.0

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

func ASpreadMethod added in v0.12.0

func ASpreadMethod(v string) SpreadMethodOpt

type SrcOpt

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

func ASrc added in v0.12.0

func ASrc(v string) SrcOpt

type SrcdocOpt

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

func ASrcdoc added in v0.12.0

func ASrcdoc(v string) SrcdocOpt

type SrclangOpt

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

func ASrclang added in v0.12.0

func ASrclang(v string) SrclangOpt

type SrcsetOpt

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

func ASrcset added in v0.12.0

func ASrcset(v string) SrcsetOpt

type StartOffsetOpt added in v0.12.0

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

func AStartOffset added in v0.12.0

func AStartOffset(v string) StartOffsetOpt

type StartOpt

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

func AStart added in v0.12.0

func AStart(v string) StartOpt

type StdDeviationOpt added in v0.12.0

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

func AStdDeviation added in v0.12.0

func AStdDeviation(v string) StdDeviationOpt

type StepOpt

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

func AStep added in v0.12.0

func AStep(v string) StepOpt

type StitchTilesOpt added in v0.12.0

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

func AStitchTiles added in v0.12.0

func AStitchTiles(v string) StitchTilesOpt

type StopColorOpt added in v0.12.0

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

func AStopColor added in v0.12.0

func AStopColor(v string) StopColorOpt

type StrikeArg added in v0.12.0

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

type StrikeAttrs added in v0.12.0

type StrikeAttrs struct {
	Global GlobalAttrs
}

func (*StrikeAttrs) WriteAttrs added in v0.12.0

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

type StrokeLinecapOpt

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

func AStrokeLinecap added in v0.12.0

func AStrokeLinecap(v string) StrokeLinecapOpt

type StrokeLinejoinOpt

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

func AStrokeLinejoin added in v0.12.0

func AStrokeLinejoin(v string) StrokeLinejoinOpt

type StrokeOpt

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

func AStroke added in v0.12.0

func AStroke(v string) StrokeOpt

type StrokeWidthOpt

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

func AStrokeWidth added in v0.12.0

func AStrokeWidth(v string) StrokeWidthOpt

type StrongArg

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

type StrongAttrs

type StrongAttrs struct {
	Global GlobalAttrs
}

func (*StrongAttrs) WriteAttrs added in v0.12.0

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

type StyleArg added in v0.12.0

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

type StyleAttrs added in v0.12.0

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

func (*StyleAttrs) WriteAttrs added in v0.12.0

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

type SubArg

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

type SubAttrs

type SubAttrs struct {
	Global GlobalAttrs
}

func (*SubAttrs) WriteAttrs added in v0.12.0

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

type SummaryArg

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

type SummaryAttrs

type SummaryAttrs struct {
	Global GlobalAttrs
}

func (*SummaryAttrs) WriteAttrs added in v0.12.0

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

type SupArg

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

type SupAttrs

type SupAttrs struct {
	Global GlobalAttrs
}

func (*SupAttrs) WriteAttrs added in v0.12.0

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

type SurfaceScaleOpt added in v0.12.0

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

func ASurfaceScale added in v0.12.0

func ASurfaceScale(v string) SurfaceScaleOpt

type SvgAnimateArg added in v0.12.0

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

SvgAnimateArg interface for animate element arguments

type SvgAnimateAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgAnimateMotionArg added in v0.12.0

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

SvgAnimateMotionArg interface for animateMotion element arguments

type SvgAnimateMotionAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgAnimateTransformArg added in v0.12.0

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

SvgAnimateTransformArg interface for animateTransform element arguments

type SvgAnimateTransformAttrs added in v0.12.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.12.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
	Fill                string
	Stroke              string
	StrokeWidth         string
	StrokeLinecap       string
	StrokeLinejoin      string
	Xmlns               string
}

SvgAttrs holds the attributes for the svg SVG element

func (*SvgAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgCircleArg added in v0.12.0

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

SvgCircleArg interface for circle element arguments

type SvgCircleAttrs added in v0.12.0

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

SvgCircleAttrs holds the attributes for the circle SVG element

func (*SvgCircleAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgClipPathArg added in v0.12.0

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

SvgClipPathArg interface for clipPath element arguments

type SvgClipPathAttrs added in v0.12.0

type SvgClipPathAttrs struct {
	GlobalAttrs
	ClipPathUnits string
}

SvgClipPathAttrs holds the attributes for the clipPath SVG element

func (*SvgClipPathAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgDefsArg added in v0.12.0

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

SvgDefsArg interface for defs element arguments

type SvgDefsAttrs added in v0.12.0

type SvgDefsAttrs struct {
	GlobalAttrs
}

SvgDefsAttrs holds the attributes for the defs SVG element

func (*SvgDefsAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgDescArg added in v0.12.0

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

SvgDescArg interface for desc element arguments

type SvgDescAttrs added in v0.12.0

type SvgDescAttrs struct {
	GlobalAttrs
}

SvgDescAttrs holds the attributes for the desc SVG element

func (*SvgDescAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgEllipseArg added in v0.12.0

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

SvgEllipseArg interface for ellipse element arguments

type SvgEllipseAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeBlendArg added in v0.12.0

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

SvgFeBlendArg interface for feBlend element arguments

type SvgFeBlendAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeColorMatrixArg added in v0.12.0

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

SvgFeColorMatrixArg interface for feColorMatrix element arguments

type SvgFeColorMatrixAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeComponentTransferArg added in v0.12.0

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

SvgFeComponentTransferArg interface for feComponentTransfer element arguments

type SvgFeComponentTransferAttrs added in v0.12.0

type SvgFeComponentTransferAttrs struct {
	GlobalAttrs
	In string
}

SvgFeComponentTransferAttrs holds the attributes for the feComponentTransfer SVG element

func (*SvgFeComponentTransferAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeCompositeArg added in v0.12.0

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

SvgFeCompositeArg interface for feComposite element arguments

type SvgFeCompositeAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeConvolveMatrixArg added in v0.12.0

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

SvgFeConvolveMatrixArg interface for feConvolveMatrix element arguments

type SvgFeConvolveMatrixAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeDiffuseLightingArg added in v0.12.0

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

SvgFeDiffuseLightingArg interface for feDiffuseLighting element arguments

type SvgFeDiffuseLightingAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeDisplacementMapArg added in v0.12.0

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

SvgFeDisplacementMapArg interface for feDisplacementMap element arguments

type SvgFeDisplacementMapAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeDistantLightArg added in v0.12.0

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

SvgFeDistantLightArg interface for feDistantLight element arguments

type SvgFeDistantLightAttrs added in v0.12.0

type SvgFeDistantLightAttrs struct {
	GlobalAttrs
	Azimuth   string
	Elevation string
}

SvgFeDistantLightAttrs holds the attributes for the feDistantLight SVG element

func (*SvgFeDistantLightAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeDropShadowArg added in v0.12.0

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

SvgFeDropShadowArg interface for feDropShadow element arguments

type SvgFeDropShadowAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeFloodArg added in v0.12.0

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

SvgFeFloodArg interface for feFlood element arguments

type SvgFeFloodAttrs added in v0.12.0

type SvgFeFloodAttrs struct {
	GlobalAttrs
	FloodColor   string
	FloodOpacity string
}

SvgFeFloodAttrs holds the attributes for the feFlood SVG element

func (*SvgFeFloodAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeFuncAArg added in v0.12.0

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

SvgFeFuncAArg interface for feFuncA element arguments

type SvgFeFuncAAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeFuncBArg added in v0.12.0

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

SvgFeFuncBArg interface for feFuncB element arguments

type SvgFeFuncBAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeFuncGArg added in v0.12.0

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

SvgFeFuncGArg interface for feFuncG element arguments

type SvgFeFuncGAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeFuncRArg added in v0.12.0

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

SvgFeFuncRArg interface for feFuncR element arguments

type SvgFeFuncRAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeGaussianBlurArg added in v0.12.0

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

SvgFeGaussianBlurArg interface for feGaussianBlur element arguments

type SvgFeGaussianBlurAttrs added in v0.12.0

type SvgFeGaussianBlurAttrs struct {
	GlobalAttrs
	In           string
	StdDeviation string
}

SvgFeGaussianBlurAttrs holds the attributes for the feGaussianBlur SVG element

func (*SvgFeGaussianBlurAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeImageArg added in v0.12.0

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

SvgFeImageArg interface for feImage element arguments

type SvgFeImageAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeMergeArg added in v0.12.0

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

SvgFeMergeArg interface for feMerge element arguments

type SvgFeMergeAttrs added in v0.12.0

type SvgFeMergeAttrs struct {
	GlobalAttrs
}

SvgFeMergeAttrs holds the attributes for the feMerge SVG element

func (*SvgFeMergeAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeMergeNodeArg added in v0.12.0

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

SvgFeMergeNodeArg interface for feMergeNode element arguments

type SvgFeMergeNodeAttrs added in v0.12.0

type SvgFeMergeNodeAttrs struct {
	GlobalAttrs
	In string
}

SvgFeMergeNodeAttrs holds the attributes for the feMergeNode SVG element

func (*SvgFeMergeNodeAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeMorphologyArg added in v0.12.0

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

SvgFeMorphologyArg interface for feMorphology element arguments

type SvgFeMorphologyAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeOffsetArg added in v0.12.0

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

SvgFeOffsetArg interface for feOffset element arguments

type SvgFeOffsetAttrs added in v0.12.0

type SvgFeOffsetAttrs struct {
	GlobalAttrs
	Dx string
	Dy string
}

SvgFeOffsetAttrs holds the attributes for the feOffset SVG element

func (*SvgFeOffsetAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFePointLightArg added in v0.12.0

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

SvgFePointLightArg interface for fePointLight element arguments

type SvgFePointLightAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeSpecularLightingArg added in v0.12.0

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

SvgFeSpecularLightingArg interface for feSpecularLighting element arguments

type SvgFeSpecularLightingAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeSpotLightArg added in v0.12.0

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

SvgFeSpotLightArg interface for feSpotLight element arguments

type SvgFeSpotLightAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeTileArg added in v0.12.0

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

SvgFeTileArg interface for feTile element arguments

type SvgFeTileAttrs added in v0.12.0

type SvgFeTileAttrs struct {
	GlobalAttrs
	In string
}

SvgFeTileAttrs holds the attributes for the feTile SVG element

func (*SvgFeTileAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFeTurbulenceArg added in v0.12.0

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

SvgFeTurbulenceArg interface for feTurbulence element arguments

type SvgFeTurbulenceAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgFilterArg added in v0.12.0

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

SvgFilterArg interface for filter element arguments

type SvgFilterAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgForeignObjectArg added in v0.12.0

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

SvgForeignObjectArg interface for foreignObject element arguments

type SvgForeignObjectAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgGArg added in v0.12.0

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

SvgGArg interface for g element arguments

type SvgGAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgImageArg added in v0.12.0

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

SvgImageArg interface for image element arguments

type SvgImageAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgLineArg added in v0.12.0

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

SvgLineArg interface for line element arguments

type SvgLineAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgLinearGradientArg added in v0.12.0

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

SvgLinearGradientArg interface for linearGradient element arguments

type SvgLinearGradientAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgMarkerArg added in v0.12.0

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

SvgMarkerArg interface for marker element arguments

type SvgMarkerAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgMaskArg added in v0.12.0

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

SvgMaskArg interface for mask element arguments

type SvgMaskAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgMetadataArg added in v0.12.0

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

SvgMetadataArg interface for metadata element arguments

type SvgMetadataAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgMpathArg added in v0.12.0

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

SvgMpathArg interface for mpath element arguments

type SvgMpathAttrs added in v0.12.0

type SvgMpathAttrs struct {
	GlobalAttrs
	Href string
}

SvgMpathAttrs holds the attributes for the mpath SVG element

func (*SvgMpathAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgPathArg added in v0.12.0

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

SvgPathArg interface for path element arguments

type SvgPathAttrs added in v0.12.0

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

SvgPathAttrs holds the attributes for the path SVG element

func (*SvgPathAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgPatternArg added in v0.12.0

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

SvgPatternArg interface for pattern element arguments

type SvgPatternAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgPolygonArg added in v0.12.0

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

SvgPolygonArg interface for polygon element arguments

type SvgPolygonAttrs added in v0.12.0

type SvgPolygonAttrs struct {
	GlobalAttrs
	Points string
}

SvgPolygonAttrs holds the attributes for the polygon SVG element

func (*SvgPolygonAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgPolylineArg added in v0.12.0

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

SvgPolylineArg interface for polyline element arguments

type SvgPolylineAttrs added in v0.12.0

type SvgPolylineAttrs struct {
	GlobalAttrs
	Points string
}

SvgPolylineAttrs holds the attributes for the polyline SVG element

func (*SvgPolylineAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgRadialGradientArg added in v0.12.0

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

SvgRadialGradientArg interface for radialGradient element arguments

type SvgRadialGradientAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgRectArg added in v0.12.0

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

SvgRectArg interface for rect element arguments

type SvgRectAttrs added in v0.12.0

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

SvgRectAttrs holds the attributes for the rect SVG element

func (*SvgRectAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgSetArg added in v0.12.0

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

SvgSetArg interface for set element arguments

type SvgSetAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgStopArg added in v0.12.0

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

SvgStopArg interface for stop element arguments

type SvgStopAttrs added in v0.12.0

type SvgStopAttrs struct {
	GlobalAttrs
	Offset    string
	StopColor string
}

SvgStopAttrs holds the attributes for the stop SVG element

func (*SvgStopAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgSwitchArg added in v0.12.0

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

SvgSwitchArg interface for switch element arguments

type SvgSwitchAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgSymbolArg added in v0.12.0

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

SvgSymbolArg interface for symbol element arguments

type SvgSymbolAttrs added in v0.12.0

type SvgSymbolAttrs struct {
	GlobalAttrs
	PreserveAspectRatio string
}

SvgSymbolAttrs holds the attributes for the symbol SVG element

func (*SvgSymbolAttrs) WriteAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgTextPathArg added in v0.12.0

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

SvgTextPathArg interface for textPath element arguments

type SvgTextPathAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgTspanArg added in v0.12.0

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

SvgTspanArg interface for tspan element arguments

type SvgTspanAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgUseArg added in v0.12.0

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

SvgUseArg interface for use element arguments

type SvgUseAttrs added in v0.12.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.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SvgViewArg added in v0.12.0

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

SvgViewArg interface for view element arguments

type SvgViewAttrs added in v0.12.0

type SvgViewAttrs struct {
	GlobalAttrs
	ViewBox string
}

SvgViewAttrs holds the attributes for the view SVG element

func (*SvgViewAttrs) WriteAttrs added in v0.12.0

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

WriteAttrs writes the SVG attributes to the string builder

type SystemLanguageOpt added in v0.12.0

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

func ASystemLanguage added in v0.12.0

func ASystemLanguage(v string) SystemLanguageOpt

type TableArg

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

type TableAttrs

type TableAttrs struct {
	Global GlobalAttrs
	Border string
}

func (*TableAttrs) WriteAttrs added in v0.12.0

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

type TableValuesOpt added in v0.12.0

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

func ATableValues added in v0.12.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.12.0

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

func ATargetX added in v0.12.0

func ATargetX(v string) TargetXOpt

type TargetYOpt added in v0.12.0

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

func ATargetY added in v0.12.0

func ATargetY(v string) TargetYOpt

type TbodyArg

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

type TbodyAttrs

type TbodyAttrs struct {
	Global GlobalAttrs
}

func (*TbodyAttrs) WriteAttrs added in v0.12.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
	Colspan string
	Headers string
	Rowspan string
}

func (*TdAttrs) WriteAttrs added in v0.12.0

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

type TextLengthOpt

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

func ATextLength added in v0.12.0

func ATextLength(v string) TextLengthOpt

type TextNode

type TextNode string

type TextareaArg

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

type TextareaAttrs

type TextareaAttrs struct {
	Global         GlobalAttrs
	Autocapitalize string
	Autocomplete   string
	Autofocus      bool
	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.12.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
}

func (*TfootAttrs) WriteAttrs added in v0.12.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
	Colspan string
	Headers string
	Rowspan string
	Scope   string
}

func (*ThAttrs) WriteAttrs added in v0.12.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
}

func (*TheadAttrs) WriteAttrs added in v0.12.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.12.0

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

type TitleArg

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

type TitleAttrs

type TitleAttrs struct {
	Global GlobalAttrs
}

func (*TitleAttrs) WriteAttrs added in v0.12.0

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

type ToOpt added in v0.12.0

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

func ATo added in v0.12.0

func ATo(v string) ToOpt

type TrArg

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

type TrAttrs

type TrAttrs struct {
	Global GlobalAttrs
}

func (*TrAttrs) WriteAttrs added in v0.12.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.12.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.12.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.12.0

func AType(v string) TypeOpt

type TypemustmatchOpt added in v0.12.0

type TypemustmatchOpt struct{}

func ATypemustmatch added in v0.12.0

func ATypemustmatch() TypemustmatchOpt

type UArg

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

type UAttrs

type UAttrs struct {
	Global GlobalAttrs
}

func (*UAttrs) WriteAttrs added in v0.12.0

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

type UlArg

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

type UlAttrs

type UlAttrs struct {
	Global GlobalAttrs
	Type   string
}

func (*UlAttrs) WriteAttrs added in v0.12.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.12.0

func (t UnsafeTxtOpt) String() string

String returns the unsafe text content

type UsemapOpt added in v0.12.0

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

func AUsemap added in v0.12.0

func AUsemap(v string) UsemapOpt

type ValueOpt

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

func AValue added in v0.12.0

func AValue(v string) ValueOpt

type ValuesOpt added in v0.12.0

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

func AValues added in v0.12.0

func AValues(v string) ValuesOpt

type VarArg

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

type VarAttrs

type VarAttrs struct {
	Global GlobalAttrs
}

func (*VarAttrs) WriteAttrs added in v0.12.0

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

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.12.0

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

type ViewBoxOpt

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

func AViewBox added in v0.12.0

func AViewBox(v string) ViewBoxOpt

type WbrArg added in v0.12.0

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

type WbrAttrs added in v0.12.0

type WbrAttrs struct {
	Global GlobalAttrs
}

func (*WbrAttrs) WriteAttrs added in v0.12.0

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

type WidthOpt

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

func AWidth added in v0.12.0

func AWidth(v string) WidthOpt

type WrapOpt

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

func AWrap added in v0.12.0

func AWrap(v string) WrapOpt

type X1Opt

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

func AX1 added in v0.12.0

func AX1(v string) X1Opt

type X2Opt

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

func AX2 added in v0.12.0

func AX2(v string) X2Opt

type XChannelSelectorOpt added in v0.12.0

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

func AXChannelSelector added in v0.12.0

func AXChannelSelector(v string) XChannelSelectorOpt

type XOpt added in v0.12.0

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

func AX added in v0.12.0

func AX(v string) XOpt

type XmlnsOpt

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

func AXmlns added in v0.12.0

func AXmlns(v string) XmlnsOpt

type Y1Opt

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

func AY1 added in v0.12.0

func AY1(v string) Y1Opt

type Y2Opt

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

func AY2 added in v0.12.0

func AY2(v string) Y2Opt

type YChannelSelectorOpt added in v0.12.0

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

func AYChannelSelector added in v0.12.0

func AYChannelSelector(v string) YChannelSelectorOpt

type YOpt added in v0.12.0

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

func AY added in v0.12.0

func AY(v string) YOpt

type ZOpt added in v0.12.0

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

func AZ added in v0.12.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