mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
Fix /design-system for tabs
This commit is contained in:
@@ -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]">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user