2023-08-22 12:40:53 -04:00
|
|
|
{% from "components/components/inset-text/macro.njk" import govukInsetText %}
|
2021-02-19 14:46:09 +00:00
|
|
|
|
2016-07-14 16:52:53 +01:00
|
|
|
<h2 class="heading-medium">Formatting</h2>
|
2018-06-28 16:06:04 +01:00
|
|
|
<p class="bottom-gutter-1-3">
|
2016-07-14 16:52:53 +01:00
|
|
|
To put a title in your template, use a hash:
|
|
|
|
|
</p>
|
2023-08-25 10:40:56 -04:00
|
|
|
<div>
|
|
|
|
|
{{ govukInsetText({"text": "# This is a title", "classes": ""})}}
|
2016-07-14 16:52:53 +01:00
|
|
|
</div>
|
2018-06-28 16:06:04 +01:00
|
|
|
<p class="bottom-gutter-1-3">
|
2016-07-14 16:52:53 +01:00
|
|
|
To make bullet points, use asterisks:
|
|
|
|
|
</p>
|
2023-08-25 10:40:56 -04:00
|
|
|
<div>
|
2021-02-19 14:46:09 +00:00
|
|
|
{{ govukInsetText({
|
|
|
|
|
"html": "* point 1<br/>
|
|
|
|
|
* point 2<br/>
|
|
|
|
|
* point 3<br/>",
|
2023-08-25 10:40:56 -04:00
|
|
|
"classes": ""})
|
2021-02-19 14:46:09 +00:00
|
|
|
}}
|
2016-07-14 16:52:53 +01:00
|
|
|
</div>
|
2018-06-28 16:06:04 +01:00
|
|
|
<p class="bottom-gutter-1-3">
|
2020-02-06 12:54:27 +00:00
|
|
|
To add inset text, use a caret:
|
2016-07-14 16:52:53 +01:00
|
|
|
</p>
|
2023-08-25 10:40:56 -04:00
|
|
|
<div>
|
2023-08-25 11:38:07 -04:00
|
|
|
{{ govukInsetText({"text": "^ You must tell us if your circumstances change", "classes": ""})}}
|
2016-07-14 16:52:53 +01:00
|
|
|
</div>
|
2018-06-28 16:06:04 +01:00
|
|
|
<p class="bottom-gutter-1-3">
|
|
|
|
|
To add a horizontal line, use three dashes:
|
|
|
|
|
</p>
|
2021-02-23 13:14:07 +00:00
|
|
|
{{ govukInsetText({
|
2023-08-25 11:49:13 -04:00
|
|
|
"html": '<p class="usa-body">First paragraph</p>
|
|
|
|
|
<p class="usa-body" style="letter-spacing: 1px;">---</p>
|
|
|
|
|
<p class="usa-body">Second paragraph</p>',
|
2023-08-25 10:40:56 -04:00
|
|
|
"classes": ""})
|
2021-02-23 13:14:07 +00:00
|
|
|
}}
|