Sha256: 5ee8e0ec5d44ee449ff51cdcf792e704dff74877d514e0c5bcc8789332ff73e1
Contents?: true
Size: 422 Bytes
Versions: 4
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true module ViewComponentScopedCss # # style tag for outputting inline css # class Tag def initialize(component_class) @component_class = component_class end def call "<style data-component-name=\"#{@component_class.name}\">#{css}</style>".html_safe end def css ViewComponentScopedCss::Loader.new(@component_class).call.html_safe end end end
Version data entries
4 entries across 4 versions & 1 rubygems