Class: Shadcn::InputGroup::Textarea::Component
- Inherits:
-
Textarea::Component
- Object
- ViewComponent::Base
- ApplicationViewComponent
- Textarea::Component
- Shadcn::InputGroup::Textarea::Component
- Defined in:
- app/components/shadcn/input_group/textarea/component.rb
Overview
InputGroupTextarea renders the ported Textarea, and shares
data-slot="input-group-control" with InputGroupInput — see that file
for why the two must not be told apart.
Constant Summary collapse
- EXTRA_CLASSES =
"flex-1 resize-none rounded-none border-0 bg-transparent py-3 " \ "shadow-none focus-visible:ring-0 dark:bg-transparent"
Constants inherited from ApplicationViewComponent
ApplicationViewComponent::CONTENTS_STYLE, ApplicationViewComponent::VOID_TAGS
Instance Attribute Summary
Attributes inherited from ApplicationViewComponent
Instance Method Summary collapse
Methods inherited from ApplicationViewComponent
#call, default_tag, #element_attributes, #initialize, #merged_style, #render_element, #shadcn_t, slot_name, #style_variants, #tag_name
Constructor Details
This class inherits a constructor from Shadcn::ApplicationViewComponent
Instance Method Details
#css_classes(extra = nil) ⇒ Object
15 16 17 |
# File 'app/components/shadcn/input_group/textarea/component.rb', line 15 def css_classes(extra = nil) super([ EXTRA_CLASSES, extra ].compact.join(" ")) end |