Skip to content

Commit

Permalink
feat: distanced option for paragraph template
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Sep 19, 2021
1 parent bf3e78b commit f15f23e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/paragraph/bem.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ export const defaultArgs = {
textContent: '',
};

export const Paragraph = ({ textContent = '', lead = false }) =>
`<p class="${clsx('utrecht-paragraph', { 'utrecht-paragraph--lead': lead })}">${textContent}</p>`;
export const Paragraph = ({ distanced = false, textContent = '', lead = false }) =>
`<p class="${clsx('utrecht-paragraph', {
'utrecht-paragraph--distanced': distanced,
'utrecht-paragraph--lead': lead,
})}">${textContent}</p>`;

0 comments on commit f15f23e

Please sign in to comment.