-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from woylie/tabs
tabs
- Loading branch information
Showing
5 changed files
with
251 additions
and
4 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
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 |
---|---|---|
|
@@ -2,6 +2,10 @@ | |
|
||
## Unreleased | ||
|
||
### Added | ||
|
||
- New component: `Doggo.tabs/1`. | ||
|
||
## [0.4.0] - 2023-12-31 | ||
|
||
### Added | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
defmodule Storybook.Components.Tabs do | ||
use PhoenixStorybook.Story, :component | ||
|
||
def function, do: &Doggo.tabs/1 | ||
|
||
def variations do | ||
[ | ||
%Variation{ | ||
id: :default, | ||
attributes: %{ | ||
id: "dog-breed-profiles", | ||
title: "Dog Breed Profiles" | ||
}, | ||
slots: [ | ||
""" | ||
<:panel label="Golden Retriever"> | ||
<p> | ||
Friendly, intelligent, great with families. Origin: Scotland. Needs | ||
regular exercise. | ||
</p> | ||
</:panel> | ||
""", | ||
""" | ||
<:panel label="Siberian Husky"> | ||
<p> | ||
Energetic, outgoing, distinctive appearance. Origin: Northeast Asia. | ||
Loves cold climates. | ||
</p> | ||
</:panel> | ||
""", | ||
""" | ||
<:panel label="Dachshund"> | ||
<p> | ||
Playful, stubborn, small size. Origin: Germany. Enjoys sniffing games. | ||
</p> | ||
</:panel> | ||
""" | ||
] | ||
} | ||
] | ||
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