Sha256: a379a771ba201c8d1c407fb3aa5d0142fb20329bcd15b5e355f4a5d419b358c0
Contents?: true
Size: 318 Bytes
Versions: 2
Compression:
Stored size: 318 Bytes
Contents
class PriceCardComponent < ViewComponent::Base attr_reader :card def initialize(card) @card = card super end def card_class highlight = card.highlight == true ? 'border-7 border-red-500' : 'border-gray-200' "divide-y divide-gray-200 rounded-lg border border-7 shadow-sm#{highlight}" end end
Version data entries
2 entries across 2 versions & 1 rubygems