Class: PhlexKit::SelectSeparator
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::SelectSeparator
- 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
-
#initialize(**attrs) ⇒ SelectSeparator
constructor
A new instance of SelectSeparator.
- #view_template ⇒ Object
Methods inherited from BaseComponent
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_template ⇒ Object
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 |