View Source Phoenix.WebComponent.Card (Phoenix.WebComponent v2.5.4)

Render card.

Link to this section Summary

Functions

Generates card

Link to this section Functions

Generates card

example

Example

<.wc_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.
</.wc_card>

attributes

Attributes

  • id (:any) - html attribute id. Defaults to false.
  • class (:string) - html attribute class. Defaults to "".
  • fit (:boolean) - set width and height to fit-content. Defaults to false.

slots

Slots

  • title - Render a card title.