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