View Source PhoenixDuskmoon.Card (PhoenixDuskmoon v4.5.0)
Render card.
Summary
Functions
Renders a card with async value.
Examples
<.dm_async_card :let={data} assign={@data}>
</.dm_async_card>
Attributes
id
(:any
) - Defaults tonil
.class
(:any
) - Defaults to""
.assign
(:any
) - Defaults tonil
.
Slots
inner_block
(required)
Generates card
Example
<.dm_card>
<:title>
Star Wars
</:title>
Star Wars is an American epic space opera multimedia
franchise created by George Lucas,
which began with the eponymous 1977 film and
quickly became a worldwide pop-culture phenomenon.
</.dm_card>
Attributes
id
(:any
) - html attribute id. Defaults tofalse
.class
(:any
) - html attribute class. Defaults to""
.
Slots
title
- Render a card title. Accepts attributes:class
(:any
) - title class.