Sha256: 992aeed9f07c098bef45998f809e488e0f39e2d8a628a7251372519c9817e099
Contents?: true
Size: 570 Bytes
Versions: 8
Compression:
Stored size: 570 Bytes
Contents
# frozen_string_literal: true class Avo::ModalComponent < Avo::BaseComponent renders_one :heading renders_one :controls prop :width, default: :md prop :body_class prop :overflow, default: :auto prop :close_modal_on_backdrop_click, default: true, reader: :public 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 def overflow_classes @overflow == :auto ? "overflow-auto" : "" end end
Version data entries
8 entries across 8 versions & 1 rubygems