Skip to content

Commit

Permalink
Docs(web-twig): Introduce Tag story refs #DS-247
Browse files Browse the repository at this point in the history
  • Loading branch information
crishpeen committed Apr 3, 2023
1 parent bdecd53 commit bb2dfbb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends 'layout/default.html.twig' %}

{% block content %}

{# Tag Default #}
{% include '@components/Tag/stories/TagDefault.twig' %}

{% endblock %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% set colors = [ "neutral", "success", "informative", "warning", "danger" ] %}
{% set sizes = [ "xsmall", "small", "medium", "large", "xlarge" ] %}

<section class="docs-Section">
<Grid cols="1" tablet="3" desktop="5">
{% for size in sizes %}
<div class="mb-700">
<h3 class="docs-Heading">Size {{ size }}</h3>
{% for color in colors %}
<div class="my-600">
<Tag color={color} size={size} isSubtle>Tag {{ color }}</Tag>
</div>
<div class="my-600">
<Tag color={color} size={size}>Tag {{ color }}</Tag>
</div>
{% endfor %}
</div>
{% endfor %}
</Grid>
</section>

0 comments on commit bb2dfbb

Please sign in to comment.