contentcard

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 3 Imported by: 0

README

ContentCard

Container with header, body, and footer sections.

Import

"github.com/tinywasm/components/contentcard"

Usage

import (
    "github.com/tinywasm/components/contentcard"
    . "github.com/tinywasm/html"
)

c := &contentcard.ContentCard{
    Header: H3("Card Title"),
    Body:   P("Content goes here..."),
    Footer: Small("Last updated: today"),
}

Properties

  • Header (dom.Component): Content for header section.
  • Body (dom.Component): Main content.
  • Footer (dom.Component): Footer content.

Back to Catalog

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentCard

type ContentCard struct {
	Element
	Header Component
	Body   Component
	Footer Component
}

func (*ContentCard) Render

func (c *ContentCard) Render() *Element

func (*ContentCard) RenderCSS

func (c *ContentCard) RenderCSS() *Stylesheet

Jump to

Keyboard shortcuts

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