Created
June 27, 2021 16:13
-
-
Save mhanberg/537d3eff0bba2406f92df4e417cf7c3f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# boolean attributes | |
input type: "checkbox", disabled: true, checked: false | |
# <input type="checkbox" disabled> | |
# class object syntax | |
valid? = false | |
div class: ["border-red-500": not valid?, "border-gray-500": valid?] do | |
@flash_message | |
end | |
# <div class="border-red-500"> | |
# Your input is invalid! | |
# </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment