module Coco # Use `Content` as a helper to render content passed to a slot without adding any tags. class Content < ViewComponent::Base def initialize(body = nil) @body = body end def call content.presence&.html_safe || @body&.html_safe end end end