Fix /design-system for tabs

This commit is contained in:
Juan José Mata
2025-11-25 14:11:50 +00:00
parent b4331f3c86
commit 97a8cb9407
2 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
<%= render TabsComponent.new(
<%= render DS::Tabs.new(
variant: :unstyled,
active_tab: "tab1",
active_btn_classes: "bg-white text-primary",
active_tab: "tab1",
active_btn_classes: "bg-white text-primary",
inactive_btn_classes: "text-secondary",
) do |tabs| %>
<div class="flex border border-secondary rounded-lg h-full max-w-[400px]">

View File

@@ -1,5 +1,5 @@
<div class="max-w-[400px]">
<%= render TabsComponent.new(active_tab: "tab1") do |tabs| %>
<%= render DS::Tabs.new(active_tab: "tab1") do |tabs| %>
<%= tabs.with_nav do |tab_nav| %>
<%= tab_nav.with_btn(id: "tab1", label: "Tab 1") %>
<%= tab_nav.with_btn(id: "tab2", label: "Tab 2") %>
@@ -13,4 +13,4 @@
<%= content_tag(:p, "Content for tab 2") %>
<% end %>
<% end %>
</div>
</div>