Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: tab doc typo, bad link and indentation #92

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading