Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add tab and change modal use html dialog.
- Loading branch information
Showing
7 changed files
with
329 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
apps/duskmoon_storybook_web/lib/phx_wc_storybook_web/storybook/components/tab.story.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
defmodule DuskmoonStorybookWeb.Storybook.Components.Tab do | ||
use PhoenixStorybook.Story, :component | ||
|
||
def function, do: &PhoenixDuskmoon.Tab.dm_tab/1 | ||
|
||
def template do | ||
""" | ||
<div> | ||
<.lsb-variation /> | ||
</div> | ||
""" | ||
end | ||
|
||
def variations do | ||
[ | ||
%Variation{ | ||
id: :default, | ||
attributes: %{ | ||
active_tab: 0 | ||
}, | ||
slots: [ | ||
~s(<:tab>Tab 1</:tab>), | ||
~s(<:tab>Tab 2</:tab>) | ||
] | ||
}, | ||
] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.