component: Index | Files

package component

import ""

Package component is a collection of basic HTML components.


Package Files


type Link struct {
    Text   string
    URL    string
    NewTab bool // Open link in new tab.

Link component.

func (Link) Render Uses

func (l Link) Render() []*html.Node

type List Uses

type List []htmlg.Component

List of components.

func Join Uses

func Join(a ...interface{}) List

Join components and strings into a single component. Valid types are string, htmlg.Component. Panics on other input.

func (List) Render Uses

func (l List) Render() []*html.Node

type Text Uses

type Text string

Text component.

func (Text) Render Uses

func (t Text) Render() []*html.Node

Package component imports 4 packages (graph) and is imported by 4 packages. Updated 2017-02-09. Refresh now. Tools for package owners.