Sha256: 0b4e07186969c3ce453ac1de12d948d818bd31adacb7a9005f97b2eaff20bf8c
Contents?: true
Size: 465 Bytes
Versions: 3
Compression:
Stored size: 465 Bytes
Contents
module Lookbook class Embed::Component < Lookbook::BaseComponent def initialize(id:, example:, params: {}, opts: {}, max_height: nil, **html_attrs) @id = id @example = example @params = params @opts = opts @max_height = max_height super(**html_attrs) end protected def alpine_data [@id.to_json, "$store.pages.embeds"].join(",") end def alpine_component "embedComponent" end end end
Version data entries
3 entries across 3 versions & 1 rubygems