LineOne's cards: the white panel, bordered, filled with a theme color, glowing, gradient and gradient-outlined.
<.card>
<:title>Simple Card</:title>
Lorem ipsum dolor sit amet.
</.card>
<.card variant="bordered" shape="xl">…</.card>
<.card variant="flat">No shadow</.card>
<.card variant="solid" color="primary"><:title>Primary Card</:title>…</.card>
<.card variant="gradient" gradient="purple-indigo">…</.card>
<.card variant="gradient_outline" gradient="sky-blue">…</.card>Without :title the content fills the card as is; padded={false} drops the default padding,
for cards laid out by hand (<.card padded={false} class="px-4 pb-4 sm:px-5">).
Summary
Functions
Renders a card, with an optional :title above the content.
Functions
Renders a card, with an optional :title above the content.
<.card variant="glow" color="info">
<:title>Revenue</:title>
<p>$12,400 this month.</p>
</.card>Attributes
variant(:string) -defaultis LineOne's white panel with a soft shadow;flatis the same panel without the shadow;solidandglowusecolor;gradientandgradient_outlineusegradient. Defaults to"default". Must be one of"default","flat","bordered","solid","glow","gradient", or"gradient_outline".color(:string) - Defaults to"primary". Must be one of"primary","secondary","info","success","warning", or"error".gradient(:string) - Defaults to"purple-indigo". Must be one of"purple-indigo","fuchsia-pink","amber-orange","sky-blue", or"green-fuchsia".shape(:string) -xlisrounded-2xl; ongradient_outlinethe outer edge and the inner panel follow it. Defaults to"rounded". Must be one of"rounded", or"xl".padded(:boolean) - Defaults totrue.class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
title- The card's heading, followed by the content. Accepts attributes:class(:any)
inner_block