You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: base.rb
    path of file: ./repos/lookbook/docs/src/_components/lookbook_docs
    
    the code of the file until where you have to start completion: module LookbookDocs
  class Base < ViewComponent::Base
    Bridgetown::ViewComponentHelpers.allow_rails_helpers :tag, :class_names, :safe_join, :raw
    include Bridgetown::ViewComponentHelper
    
    def html_attrs
      html_attrs = attrs[:html] || {}
      html_attrs[:data] ||= {}
      html_attrs[:data].merge!(attrs[:data] || {})
      html_attrs[:data][:component] = component_name
      html_attrs[:class] ||= class_names(attrs[:class], html_attrs[:class])
      html_attrs[:id] ||= attrs[:id]
      html_attrs
    end