Skip to content

Commit

Permalink
Docs(web): Add Heading demo #DS-899
Browse files Browse the repository at this point in the history
Heading demo in web is now same as demo in web-react and web-twig
  • Loading branch information
pavelklibani committed Sep 13, 2023
1 parent d5a88a9 commit 750fe06
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/web/src/scss/components/Heading/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Heading

The Heading component provides helper classes to render headings.

Basic example usage:

```
<div class="typography-heading-medium-text">Heading</div>
<h2 class="typography-heading-medium-text">Heading H2</h2>
```

## Sizes

You can use different sizes of headings.

```
<div class="typography-heading-xsmall-text">Heading xsmall</div>
<div class="typography-heading-small-text">Heading small</div>
<div class="typography-heading-medium-text">Heading medium</div>
<div class="typography-heading-large-text">Heading large</div>
<div class="typography-heading-xlarge-text">Heading xlarge</div>
```
32 changes: 32 additions & 0 deletions packages/web/src/scss/components/Heading/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{#> layout/plain }}

<section class="docs-Section">

<h2 class="docs-Heading">Default</h2>

<div class="docs-Stack docs-Stack--start">

<div class="typography-heading-medium-text">Heading</div>
<h2 class="typography-heading-medium-text">Heading H2</h2>

</div>

</section>

<section class="docs-Section">

<h2 class="docs-Heading">Sizes</h2>

<div class="docs-Stack docs-Stack--start">

<div class="typography-heading-xsmall-text">Heading xsmall</div>
<div class="typography-heading-small-text">Heading small</div>
<div class="typography-heading-medium-text">Heading medium</div>
<div class="typography-heading-large-text">Heading large</div>
<div class="typography-heading-xlarge-text">Heading xlarge</div>

</div>

</section>

{{/layout/plain }}

0 comments on commit 750fe06

Please sign in to comment.