Skip to content

Commit

Permalink
feat: button template
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Feb 11, 2025
1 parent fc11092 commit a2613c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mjml/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ const templates: Partial<Record<MjmlComponent, Partial<MJMLJsonObject>>> = {
'mj-text': {
content: 'Hello World',
},
'mj-button': {
content: 'Click me',
attributes: {
href: '#',
},
},
}

/**
Expand Down

0 comments on commit a2613c7

Please sign in to comment.