Class: Panda::Core::UI::Card
- Defined in:
- app/components/panda/core/UI/card.rb
Overview
Card component for containing related content.
Cards are flexible containers that can hold any content, with optional padding, shadows, and border variations.
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#after_template, #attrs, #before_template, #merge_attrs, #tailwind_merge_attrs
Instance Method Details
#default_attrs ⇒ Object
40 41 42 43 44 |
# File 'app/components/panda/core/UI/card.rb', line 40 def default_attrs { class: card_classes } end |
#view_template(&block) ⇒ Object
36 37 38 |
# File 'app/components/panda/core/UI/card.rb', line 36 def view_template(&block) div(**@attrs, &block) end |