Class: PhlexKit::SelectSeparator

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/select/select_separator.rb

Overview

Hairline between SelectGroups, ported from shadcn/ui's SelectSeparator. See select.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ SelectSeparator

Returns a new instance of SelectSeparator.



5
# File 'app/components/phlex_kit/select/select_separator.rb', line 5

def initialize(**attrs) = (@attrs = attrs)

Instance Method Details

#view_templateObject



6
7
8
# File 'app/components/phlex_kit/select/select_separator.rb', line 6

def view_template
  div(**mix({ class: "pk-select-separator", role: "separator", aria: { hidden: true } }, @attrs))
end