Sha256: f743a4f207dbf4f1195cc90ded4b9638a2eb76c12fce46ba1b9bacac59fa4faf

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

# frozen_string_literal: true

class <%= full_class_name %> < <%= abstract_component %>
  # Props that your component accepts
  prop :description, type: ::String, default: -> { 'Default Description' }

  after_initialize do
    # some initialization
    @time = ::Time.now
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amber_extension_generator-1.0.0 lib/amber_extension_generator/templates/templates/component.rb.tt
amber_extension_generator-0.0.5 lib/amber_extension_generator/templates/templates/component.rb.tt