Closed htmlandbacon closed 1 month ago
We need to update our nunjucks macro options to show sub components and cross component docs (i.e header)
Currently we only show top level, information on the macro, this means the only way to work out what is going on is to look at the code, or examples.
When doing pref testing we worked out this was making multiple redundant IO calls
Example:
https://design-system.dwp.gov.uk/components/timeline
We require an array of events. - what does events look like? Is that all the options in the example?
Easier to see how to use a component without looking at the code.
What
We need to update our nunjucks macro options to show sub components and cross component docs (i.e header)
Why
Currently we only show top level, information on the macro, this means the only way to work out what is going on is to look at the code, or examples.
When doing pref testing we worked out this was making multiple redundant IO calls
Example:
https://design-system.dwp.gov.uk/components/timeline
We require an array of events. - what does events look like? Is that all the options in the example?
Done when
Outcomes
Easier to see how to use a component without looking at the code.
Anything else
Related tickets