The panel: surfaces (variant), colour (color, gradient), optional :title and composable
parts (header, body, footer).
<.card>
<:title>Simple Card</:title>
<span>Lorem ipsum dolor sit amet.</span>
</.card>
<.card variant="solid" color="primary"><:title>Primary Card</:title>...</.card>
<.card variant="gradient" gradient="purple-indigo">...</.card>
<.card canvas>
<.card_header>
<.card_heading level={3}>Profile</.card_heading>
<.card_actions>...</.card_actions>
</.card_header>
<.card_body>...</.card_body>
<.card_footer>All changes saved</.card_footer>
</.card>By default the card is a lu-cv surface (title in a <b>, content as given). With canvas
it is the canvas lu-card tray, made for card_header/1, card_body/1 and card_footer/1.
navigate, patch or href make the whole card a link, a row that ends in an arrow.
size xs/sm/lg and shape="xl" set the padding/corners inline; md/rounded are the
defaults. The part elements (card_body, ...) render an empty style unless style={false}.
Summary
Functions
Attributes
variant(:string) - Defaults to"default". Must be one of"default","flat","bordered","outline","muted","soft","filled","solid","glow","gradient", or"gradient_outline".size(:string) - Defaults to"md". Must be one of"xs","sm","md", or"lg".body(:string) - Defaults to"seamless". Must be one of"seamless","divided","separated","inset", or"flush".divider(:string) - Defaults to"full". Must be one of"full", or"inset".highlight(:boolean) - Defaults totrue.color(:string) - Defaults to"primary". Must be one ofnil,"primary","secondary","info","success","warning", or"error".gradient(:string) - Defaults to"purple-indigo". Must be one ofnil,"purple-indigo","fuchsia-pink","amber-orange","sky-blue", or"green-fuchsia".shape(:string) - Defaults to"rounded". Must be one of"rounded", or"xl".padded(:boolean) - Defaults totrue.canvas(:boolean) - The canvaslu-cardtray for the parts. Defaults tofalse.navigate(:string) - Defaults tonil.patch(:string) - Defaults tonil.href(:string) - Defaults tonil.arrow(:boolean) - Defaults totrue.style(:string) - Defaults tonil.class(:any) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["target", "rel", "download", "replace", "method"].
Slots
inner_blocktitle- The card's heading, followed by the content. Accepts attributes:class(:any)
Attributes
class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
style(:any) - Inline style (falseomits the attribute). Defaults tonil.class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
size(:string) - Defaults tonil.Must be one ofnil,"xs","sm","md", or"lg".class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
size(:string) - Defaults to"base". Must be one of"base","lg", or"xl".level(:integer) - Defaults to2. Must be one of1,2,3,4,5, or6.class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)