-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧪 Add the first two stories of our button
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# My Components' examples | ||
|
||
This is the file __test/appraise/examples/my_components.md__ where the different components in the app could have an alternative doc to Storybook's one... | ||
|
||
## Button Component | ||
### With short text | ||
~~~yaml example="Button w short text" fixture="url.js" | ||
path: /rails/stories/button_component/with_short_text | ||
~~~ | ||
|
||
### With long text | ||
~~~yaml example="Button w long text" fixture="url.js" | ||
path: /rails/stories/button_component/with_long_text | ||
~~~ |
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,5 @@ | ||
'use strict'; | ||
|
||
module.exports = function (params) { | ||
return `http://localhost:3000${params.path}`; | ||
}; |
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,21 @@ | ||
{ | ||
"title": "Button Component", | ||
"stories": [ | ||
{ | ||
"name": "with_short_text", | ||
"parameters": { | ||
"server": { | ||
"id": "button_component/with_short_text" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "with_long_text", | ||
"parameters": { | ||
"server": { | ||
"id": "button_component/with_long_text" | ||
} | ||
} | ||
} | ||
] | ||
} |