-
Notifications
You must be signed in to change notification settings - Fork 2
Components: Example
Kerry Lyons edited this page Oct 11, 2022
·
5 revisions
A simple panel which contains a useful resource, tips, an example, case study or external content such as a tool or service.
When you need to display something useful to the user and bring attention to it.
You can use multiple of these on a page.
Leave an empty line before and after to improve readability of the code.
The ruby extension accepts 2 parameters, title
and content
<%= example_panel("title","HTML content") %>
Example:
## Section title
...
<%= example_panel("Tools and resources", "<a href='#' target='_blank'>Estimate how many people in the UK have a disability</a>.") %>
...