Sha256: bc90b42810a1f365980459ef7b00bc3501f36daee48f29248cb43e73dfdda5ff
Contents?: true
Size: 376 Bytes
Versions: 3
Compression:
Stored size: 376 Bytes
Contents
# frozen_string_literal: true module Tailwinds module Form # Tailwind-styled file_field input class FileFieldComponent < TailwindComponent def initialize(input, attribute, object_name: nil, **options) @label = options[:label] || attribute.to_s.capitalize @for = "#{object_name}_#{attribute}" @input = input end end end end
Version data entries
3 entries across 3 versions & 1 rubygems