Class: PhlexKit::InputGroupButton
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::InputGroupButton
- Defined in:
- app/components/phlex_kit/input_group/input_group_button.rb
Overview
Small button inside an InputGroupAddon, ported from shadcn/ui's InputGroupButton — a ghost xs Button tuned to sit flush in the shell (tighter radius, no shadow). Same knobs as Button (variant:/size:/icon:), defaulting to variant: :ghost, size: :xs. See input_group.rb.
Instance Method Summary collapse
-
#initialize(variant: :ghost, size: :xs, icon: false, **attrs) ⇒ InputGroupButton
constructor
A new instance of InputGroupButton.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(variant: :ghost, size: :xs, icon: false, **attrs) ⇒ InputGroupButton
Returns a new instance of InputGroupButton.
7 8 9 10 11 12 |
# File 'app/components/phlex_kit/input_group/input_group_button.rb', line 7 def initialize(variant: :ghost, size: :xs, icon: false, **attrs) @variant = variant @size = size @icon = icon @attrs = attrs end |