Sha256: eda0a9e9e9deaa97109828478f52d42241a1e92946bd9e16d2763b24a74ab02f
Contents?: true
Size: 481 Bytes
Versions: 6
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true class Avo::Fields::Common::HeadingComponent < ViewComponent::Base include Avo::Concerns::HasResourceStimulusControllers def initialize(field:) @field = field @view = field.resource.view @classes = "flex items-start py-1 leading-tight bg-gray-100 text-gray-500 text-xs #{@field.get_html(:classes, view: @view, element: :wrapper)}" @data = stimulus_data_attributes add_stimulus_attributes_for(field.resource, @data) end end
Version data entries
6 entries across 6 versions & 1 rubygems