Sha256: 1859e4e492c04ddece4259e9757e7b19c9bef7985bed2158566116b94227fce9
Contents?: true
Size: 491 Bytes
Versions: 16
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true class Avo::ModalComponent < Avo::BaseComponent renders_one :heading renders_one :controls attr_reader :width attr_reader :body_class def initialize(width: :md, body_class: nil) @width = width @body_class = body_class end def width_classes case width.to_sym when :md "w-11/12 lg:w-1/2 sm:max-w-168" when :xl "w-11/12 lg:w-3/4" end end def height_classes "max-h-full min-h-1/4 max-h-11/12" end end
Version data entries
16 entries across 16 versions & 1 rubygems