Skip to content

Commit 640e68a

Browse files
authored
fix: restore Text demo file mistakenly removed
1 parent 952386a commit 640e68a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% extends "@pl/_text-doc-template.twig" %}
2+
3+
{% set text_demo %}
4+
<bolt-text display="block">
5+
This paragraph of text has block display, which means it will take up the full width of its container.
6+
</bolt-text>
7+
<bolt-text display="block">
8+
This paragraph of text also has block display, but within this paragraph, certain text can be <bolt-text display="inline" font-weight="bold" text-transform="uppercase">inline display</bolt-text>, and it can be styled differently than the rest of the paragraph.
9+
</bolt-text>
10+
{% endset %}
11+
12+
{% block content %}
13+
<bolt-text headline>
14+
Display Usage
15+
</bolt-text>
16+
<bolt-text>
17+
<bolt-code-snippet display="inline" lang="html">&lt;bolt-text&gt;</bolt-code-snippet> can be defined as a paragraph of text (block display) or a piece of inline text (inline display).
18+
</bolt-text>
19+
{% include text_code.code_example(text_demo, true) %}
20+
{% endblock %}

0 commit comments

Comments
 (0)