Class: PhlexKit::InputOtpSeparator

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/input_otp/input_otp_separator.rb

Overview

Divider between OTP groups. See input_otp.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ InputOtpSeparator

Returns a new instance of InputOtpSeparator.



4
# File 'app/components/phlex_kit/input_otp/input_otp_separator.rb', line 4

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

Instance Method Details

#view_templateObject



5
# File 'app/components/phlex_kit/input_otp/input_otp_separator.rb', line 5

def view_template = div(**mix({ class: "pk-input-otp-separator", role: "separator" }, @attrs)) { "-" }