card

package
v0.0.0-...-2cdc2f2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

Index

Constants

View Source
const CardRootClassName = "card"
View Source
const CardTextRootClassName = "card-text"
View Source
const CardTitleRootClassName = "card-title"

Variables

This section is empty.

Functions

func Show

func Show(props CardProps) templ.Component

Types

type CardProps

type CardProps struct {
	base.ElementProps
	Title    CardTitle
	Text     CardText
	ImageCap templ.Component
	Footer   templ.Component
}

func (CardProps) BuildClassNames

func (cp CardProps) BuildClassNames() (classes string)

type CardText

type CardText struct {
	base.ElementProps
	Text string
}

func (CardText) BuildClassNames

func (ct CardText) BuildClassNames() (classes string)

type CardTitle

type CardTitle struct {
	base.ElementProps
	Text string
}

func (CardTitle) BuildClassNames

func (ct CardTitle) BuildClassNames() (classes string)

Directories

Path Synopsis
templ: version: v0.2.747
templ: version: v0.2.747

Jump to

Keyboard shortcuts

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