-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Description
In HTML, there are attributes that we'd only want to add on some condition, such as "checked" and "disabled". This is currently quite verbose to do, involving something like:
if someCondition {
Input()
.checked()
} else {
Input()
}It would be really helpful if there were support for something like:
Input()
.checked(when: someCondition)
.disabled(when: someConditition)