DaisyUIComponents.Card (DaisyUIComponents v0.7.6)

View Source

Card component

https://daisyui.com/components/card/

Summary

Functions

Attributes

  • class (:any) - Defaults to nil.
  • placement (:string) - Must be one of "top", or "bottom".
  • bordered (:boolean) - Defaults to false.
  • modifier (:string) - Must be one of "side", or "image_full".
  • padding (:string) - Must be one of "normal", or "compact".
  • Global attributes are accepted.

Slots

  • card_title - Accepts attributes:
    • class (:any)
  • card_actions
  • card_body
  • inner_block

Attributes

  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - Defaults to nil.
  • label (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Functions

card(assigns)

Attributes

  • class (:any) - Defaults to nil.
  • placement (:string) - Must be one of "top", or "bottom".
  • bordered (:boolean) - Defaults to false.
  • modifier (:string) - Must be one of "side", or "image_full".
  • padding (:string) - Must be one of "normal", or "compact".
  • Global attributes are accepted.

Slots

  • card_title - Accepts attributes:
    • class (:any)
  • card_actions
  • card_body
  • inner_block

card_actions(assigns)

Attributes

  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

card_body(assigns)

Attributes

  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

card_title(assigns)

Attributes

  • class (:any) - Defaults to nil.
  • label (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

modifiers()

paddings()

placements()