Class: ShadcnPhlexcomponents::Textarea
- Defined in:
- lib/shadcn_phlexcomponents/components/textarea.rb
Constant Summary
Constants inherited from Base
Base::SANITIZER_ALLOWED_ATTRIBUTES, Base::SANITIZER_ALLOWED_TAGS, Base::TAILWIND_MERGER
Instance Method Summary collapse
-
#initialize(value: nil, **attributes) ⇒ Textarea
constructor
A new instance of Textarea.
- #view_template ⇒ Object
Methods inherited from Base
#before_template, #convert_collection_hash_to_struct, #default_attributes, #find_as_child, #icon, #item_disabled?, #merge_default_attributes, #merged_as_child_attributes, #nokogiri_attributes_to_hash, #overlay, #sanitize_as_child
Constructor Details
#initialize(value: nil, **attributes) ⇒ Textarea
Returns a new instance of Textarea.
20 21 22 23 |
# File 'lib/shadcn_phlexcomponents/components/textarea.rb', line 20 def initialize(value: nil, **attributes) @value = value super(**attributes) end |
Instance Method Details
#view_template ⇒ Object
25 26 27 |
# File 'lib/shadcn_phlexcomponents/components/textarea.rb', line 25 def view_template(&) textarea(**@attributes) { @value } end |