Skip to content

Commit 82d9a9f

Browse files
author
matheo
committed
use attributes in template
1 parent 226c301 commit 82d9a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% props label, primary = true %}
22

3-
<button class="{{ primary ? 'primary' : 'secondary' }}">
3+
<button {{ attributes.defaults({class: primary ? 'primary' : 'secondary'}) }}>
44
{{ label }}
55
</button>

0 commit comments

Comments
 (0)