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: alert_component_preview.rb
    path of file: ./repos/gitlabhq/spec/components/previews/pajamas
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
module Pajamas
  class AlertComponentPreview < ViewComponent::Preview
    # @param title text
    # @param body text
    # @param dismissible toggle
    # @param variant select {{ Pajamas::AlertComponent::VARIANT_ICONS.keys }}
    def defa
    
    def default(title: "Alert title (optional)", body: "Alert message goes here.", dismissible: true, variant: :info)
      render(Pajamas::AlertComponent.new(
               title: title,
               dismissible: dismissible,
               variant: variant.to_sym
             )) do |c|
        if body
          c.with_body { body }
        end
      end