Type CardOptions

type CardOptions struct {
	Size CardSize
	// HeaderHeight and FooterHeight are the heights the caller needs for their
	// content; the content section takes whatever is left.
	HeaderHeight float32
	FooterHeight float32
	// HeaderBorder draws the header's border-b with a spacing of padding under
	// its content; FooterBorder draws the footer's border-t with padding above.
	HeaderBorder bool
	FooterBorder bool
}

CardOptions describes the sections of a card. All sizes are content heights in logical pixels; a zero height leaves the section out. The card supplies the padding around and between them (--card-spacing, which Size selects).