Skip to content

Commit

Permalink
Merge pull request #92 from pierrelegall/fix/tabs-doc
Browse files Browse the repository at this point in the history
fix: tab doc typo, bad link and indentation
  • Loading branch information
bluzky authored Nov 28, 2024
2 parents 7891a46 + 6673460 commit 71acc20
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions lib/salad_ui/tabs.ex
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
defmodule SaladUI.Tabs do
@moduledoc """
Implement of card components from https://ui.shadcn.com/docs/components/card
Implementation of tabs components from https://ui.shadcn.com/docs/components/tabs
## Example:
<.tabs default="account" id="settings" :let={builder} class="w-[400px]">
<.tabs_list class="grid w-full grid-cols-2">
<.tabs_trigger builder={builder} value="account">account</.tabs_trigger>
<.tabs_trigger builder={builder} value="password">password</.tabs_trigger>
</.tabs_list>
<.tabs_content value="account">
<.tabs_list class="grid w-full grid-cols-2">
<.tabs_trigger builder={builder} value="account">account</.tabs_trigger>
<.tabs_trigger builder={builder} value="password">password</.tabs_trigger>
</.tabs_list>
<.tabs_content value="account">
<.card>
<.card_content class="p-6">
Account
</.card_content>
</.card>
</.tabs_content>
<.tabs_content value="password">
<.card>
<.card_content class="p-6">
Account
</.card_content>
</.card>
</.tabs_content>
<.tabs_content value="password">
<.card>
<.card_content class="p-6">
Password
</.card_content>
</.card>
</.tabs_content>
<.card_content class="p-6">
Password
</.card_content>
</.card>
</.tabs_content>
</.tabs>
"""
use SaladUI, :component
Expand Down

0 comments on commit 71acc20

Please sign in to comment.