DaisyUIComponents.Card (DaisyUIComponents v0.8.3)

View Source

Card component

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

Summary

Functions

Attributes

  • class (:any) - Defaults to nil.
  • size (:string) - Must be one of "xs", "sm", "md", "lg", or "xl".
  • placement (:string) - Must be one of "top", or "bottom".
  • bordered (:boolean) - Defaults to false.
  • modifier (:string) - Must be one of "side", or "image_full".
  • Global attributes are accepted.

Slots

  • card_title - Accepts attributes:
    • class (:any)
  • card_body - Accepts attributes:
    • class (:any)
  • card_actions - Accepts attributes:
    • class (:any)
  • 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

Returns the modifiers of the card component.

Returns the placements of the card component.

Functions

card(assigns)

Attributes

  • class (:any) - Defaults to nil.
  • size (:string) - Must be one of "xs", "sm", "md", "lg", or "xl".
  • placement (:string) - Must be one of "top", or "bottom".
  • bordered (:boolean) - Defaults to false.
  • modifier (:string) - Must be one of "side", or "image_full".
  • Global attributes are accepted.

Slots

  • card_title - Accepts attributes:
    • class (:any)
  • card_body - Accepts attributes:
    • class (:any)
  • card_actions - Accepts attributes:
    • class (:any)
  • 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()

Returns the modifiers of the card component.

Description

Retrieves a fixed list of all possible modifiers.

placements()

Returns the placements of the card component.

Description

Retrieves a fixed list of all possible placements.