-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs(web-twig): Introduce Link story refs #DS-247
- Loading branch information
Showing
4 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
packages/web-twig/src/Resources/components/Link/Link.stories.twig
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,11 @@ | ||
{% extends 'layout/default.html.twig' %} | ||
|
||
{% block content %} | ||
|
||
{# Link Default #} | ||
{% include '@components/Link/stories/LinkDefault.twig' %} | ||
|
||
{# Link Colors #} | ||
{% include '@components/Link/stories/LinkColors.twig' %} | ||
|
||
{% endblock %} |
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
12 changes: 12 additions & 0 deletions
12
packages/web-twig/src/Resources/components/Link/stories/LinkColors.twig
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,12 @@ | ||
{% set colors = [ "primary", "secondary", "inverted" ] %} | ||
|
||
<section class="docs-Section"> | ||
|
||
<h2 class="docs-Heading">Colors</h2> | ||
|
||
{% for color in colors %} | ||
<p{% if color is same as('inverted') %} class="docs-Box"{% endif %}> | ||
<Link href="#" color={color}>Link {{ color }}</Link> | ||
</p> | ||
{% endfor %} | ||
</section> |
37 changes: 37 additions & 0 deletions
37
packages/web-twig/src/Resources/components/Link/stories/LinkDefault.twig
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,37 @@ | ||
<section class="docs-Section"> | ||
|
||
<h2 class="docs-Heading">Default</h2> | ||
|
||
<p> | ||
<Link href="#"> | ||
Link | ||
</Link> | ||
</p> | ||
|
||
<p> | ||
<Link | ||
href="#" | ||
color="primary" | ||
isUnderlined | ||
> | ||
Primary Underlined Link | ||
</Link> | ||
</p> | ||
|
||
<p> | ||
<Link | ||
href="#" | ||
color="primary" | ||
isDisabled | ||
> | ||
Primary Disabled Link | ||
</Link> | ||
</p> | ||
|
||
<p> | ||
<Link href="https://www.example.com/" target="_blank" title="Warning"> | ||
⚠️ | ||
</Link> | ||
</p> | ||
|
||
</section> |