contentcard

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 2 Imported by: 0

README

Card Component

Container with header, body, and footer sections.

Import

"github.com/tinywasm/components/card"

Usage

c := &card.Card{
    Header: dom.Tag("h3").Text("Card Title").ToComponent(),
    Body:   dom.Tag("p").Text("Content goes here...").ToComponent(),
    Footer: dom.Tag("small").Text("Last updated: today").ToComponent(),
}

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) IconSvg

func (c *ContentCard) IconSvg() map[string]string

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