Class: PhlexKit::InputOtpGroup
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::InputOtpGroup
- Defined in:
- app/components/phlex_kit/input_otp/input_otp_group.rb
Overview
Joined run of OTP slots. See input_otp.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ InputOtpGroup
constructor
A new instance of InputOtpGroup.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ InputOtpGroup
Returns a new instance of InputOtpGroup.
4 |
# File 'app/components/phlex_kit/input_otp/input_otp_group.rb', line 4 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
5 |
# File 'app/components/phlex_kit/input_otp/input_otp_group.rb', line 5 def view_template(&) = div(**mix({ class: "pk-input-otp-group" }, @attrs), &) |