Class: Shadcn::TabsComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::TabsComponent
- Defined in:
- app/components/shadcn/tabs_component.rb
Overview
Tabs component for tabbed interfaces Matches shadcn/ui Tabs component Uses Stimulus for interactivity
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
-
#initialize(default_value: nil, orientation: :horizontal, url_param: nil, **options) ⇒ TabsComponent
constructor
A new instance of TabsComponent.
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
#initialize(default_value: nil, orientation: :horizontal, url_param: nil, **options) ⇒ TabsComponent
Returns a new instance of TabsComponent.
48 49 50 51 52 53 |
# File 'app/components/shadcn/tabs_component.rb', line 48 def initialize(default_value: nil, orientation: :horizontal, url_param: nil, **) super(**) @default_value = default_value @orientation = orientation @url_param = url_param end |