Class: Shadcn::ItemSeparatorComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/shadcn/item_separator_component.rb

Overview

Item Separator component - visual divider between items

Constant Summary collapse

BASE_CLASSES =
"shrink-0 bg-border h-[1px] w-full"

Instance Attribute Summary

Attributes inherited from BaseComponent

#class_name, #data, #html_options

Instance Method Summary collapse

Methods inherited from BaseComponent

#content, #initialize

Methods included from Rails::Helpers::ClassNameHelper

#cn

Constructor Details

This class inherits a constructor from Shadcn::BaseComponent

Instance Method Details

#callObject



8
9
10
# File 'app/components/shadcn/item_separator_component.rb', line 8

def call
  (:div, "", class: merge_classes(BASE_CLASSES), role: "separator", **html_options.merge(build_data))
end