class ViewComponent::Preview

def preview_name

Returns the underscored name of the component preview without the suffix.
def preview_name
  name.chomp("Preview").underscore
end